man problem

Alexander E. Patrakov semzx at newmail.ru
Mon Mar 31 08:36:38 MST 2003


On Monday 31 March 2003 19:29, Thomas Berger wrote:
>
> The error is always the same:
> Failed to open the message catalog man on the path NLSPATH=<none>
>
> can you help me ? what is my problem ??

This is not your problem, but the problem of man. Its author still uses the 
old catgets() i18n in the obsolete way. Either set LANG to something valid, 
or change the source as follows:

in src/gripes.c near the beginning of catinit() function (near line 38) change
        catfd = my_catopen(mantexts,0);
to
        catfd = my_catopen(mantexts,NL_CAT_LOCALE);
This causes man to use LC_ALL or LC_MESSAGES instead of LANG.

Or, if you don't want the i18n of man messages, just prepend DEFS="-DNONLS" to 
the ./configure command (this will not affect your ability to view man pages 
in your native language)

-- 
Alexander E. Patrakov

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list