Web lists-archives.com

Error after invoking "man grep" (locale-dependent)




Hello,

I observe the following error message after exiting the pager (less) for
"man grep":

> man: command exited with status 127: iconv -c -f UTF-8 -t CP1251//TRANSLIT | col -b -p -x | sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }'

The easiest way to reproduce this is to run

> man grep >/dev/null

in a ru_RU.CP1251 environment:

> $ locale
> LANG=ru_RU.CP1251
> LC_CTYPE="ru_RU.CP1251"
> LC_NUMERIC="ru_RU.CP1251"
> LC_TIME="ru_RU.CP1251"
> LC_COLLATE="ru_RU.CP1251"
> LC_MONETARY="ru_RU.CP1251"
> LC_MESSAGES="C"
> LC_ALL=

The same for en_US locale:

> man: command exited with status 127: iconv -c -f UTF-8 -t ISO-8859-1//TRANSLIT | col -b -p -x | sed -e '/^[[:space:]]*$/{ N; /^[[:space:]]*\n[[:space:]]*$/D; }'

The issue is not reproducible in UTF-8 locales.

grep(1) seems to be the only manual page affected.


Regards,
Andrey.

Attachment: signature.asc
Description: OpenPGP digital signature