Subject: bug#24373: how to reproduce this

From: Ricardo Wurmus <[email-masked]>
Date: Wed, 07 Sep 2016 10:52:02 +0200

The environment variable that triggers the bug is “LC_CTYPE=zh_CN.utf8”,
which I have set in Emacs.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ LC_CTYPE=zh_CN.utf8 man borg
man: can't execute iconv: No such file or directory
man: command exited with status 127: iconv -c -f ISO-8859-1 -t UTF-8//TRANSLIT | sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }' | (cd <fd 3> && LESS=-ix8RmPm Manual page borg(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page borg(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=borg(1) /gnu/store/hxz1cnl0bsxz5bir2gak1lq2hbg61bdk-less-481/bin/less)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To fix this I submitted a patch to guix-devel a few minutes ago.  It
replaces “iconv” in src/man.c with the full path to glibc’s “iconv”.

~~ Ricardo