Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159906

Summary: app-i18n/man-pages-cs install process is sensitive to locale
Product: Gentoo Linux Reporter: Petr Pisar <petr.pisar>
Component: New packagesAssignee: Mamoru KOMACHI (RETIRED) <usata>
Status: RESOLVED UPSTREAM    
Severity: normal CC: jkt
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Adds unicode USE flag
Makefile uses UTF8 variable instead of LC_ALL and LANG
Support for new makefile charset decision style

Description Petr Pisar 2007-01-03 14:01:55 UTC
Makefile can install man pages in ISO-8859-2 encoding or recode them to UTF-8. The decision is based on LANG or LC_ALL variable content. It looks a little dummy, but groff still doesn't support UTF-8 on input. Therefore I would prefer to let the decison on administrator using unicode USE flag.
Comment 1 Petr Pisar 2007-01-03 14:06:47 UTC
Created attachment 105326 [details, diff]
Adds unicode USE flag

unicode USE flag can drive encoding of installed man pages. It also print some advices howto setup man to see man pages properly
Comment 2 Jan Kundrát (RETIRED) gentoo-dev 2007-01-05 14:43:01 UTC
Are you sure "C.UTF-8" is correct? Our localization guide [1] recommends "cs_CZ.UTF-8", I don't have anything like "C.utf-8" on any of my systems. I think the best solution would be to grep `locale -a` for any UTF-8-enabled locale and use it...

[1] http://www.gentoo.org/doc/cs/guide-localization.xml
Comment 3 Petr Pisar 2007-01-07 20:09:38 UTC
(In reply to comment #2)
> Are you sure "C.UTF-8" is correct?
You are right. C and POSIX allow only US-ASCII charset.

IMHO changing locale is not the best solution (e.g. all programs called from Makefile can complain about illegal locale [even perl refuses to start] or after greping installed locales they can start talking in unexpected language).

I try to patch the Makefile.
Comment 4 Petr Pisar 2007-01-07 21:47:01 UTC
Created attachment 105941 [details, diff]
Makefile uses UTF8 variable instead of LC_ALL and LANG

This patch superseds locale driven test. Makefile chose man pages charset on UTF8 variable now. If $UTF8 is equaled to "yes", then man pages will be recoded to the UTF-8.
Comment 5 Petr Pisar 2007-01-07 21:52:34 UTC
Created attachment 105943 [details, diff]
Support for new makefile charset decision style

Previous ebuild patch reworked. Locale variables will be not touched anymore.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-10-30 07:58:37 UTC
Please, get this handled upstream if you dislike what they are doing.