Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] helpfiles: Also accept 'UTF-8' as an encoding name.



Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
>
> Looking more closely, I'm confused: why do we care which character sets
> are available, and why are we not just setting `LC_ALL=C` during the
> generation?

It does not work. (At least on my gentoo box here it is reproducible):

After repairing the $lc_type -> $lc_ctype typos, I get:

perl ./helpfiles -fC zshbuiltins 11
helpfiles: using LC_CTYPE=C
Error executing formatting or display command.
System command (cd "/usr/share/man" && (echo ".pl 11i"; \
/usr/bin/unxz -c '/usr/share/man/man1/zshbuiltins.1.xz') | \
/usr/bin/gtbl | /usr/bin/nroff -mandoc | \
/usr/bin/less -+F -LiMXsR --shift 5) exited with status 36096.
No manual entry for zshbuiltins
helpfiles: not all files were properly generated

Similarly with LC_ALL=C, of course.

Just changing LC_CTYPE to some utf8 aware locale fixed it.
Since this is inherent to man/colcrt/less/whatever is implicitly
involved in this pipe, there is not much we can do except setting
a working LC_CTYPE.



Messages sorted by: Reverse Date, Date, Thread, Author