Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159906 - app-i18n/man-pages-cs install process is sensitive to locale
Summary: app-i18n/man-pages-cs install process is sensitive to locale
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mamoru KOMACHI (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-03 14:01 UTC by Petr Pisar
Modified: 2007-10-30 07:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds unicode USE flag (man-pages-cs-0.16-unicode.diff,1.68 KB, patch)
2007-01-03 14:06 UTC, Petr Pisar
Details | Diff
Makefile uses UTF8 variable instead of LC_ALL and LANG (man-pages-cs-0.16-unicode.diff,963 bytes, patch)
2007-01-07 21:47 UTC, Petr Pisar
Details | Diff
Support for new makefile charset decision style (man-pages-cs-0.16-unicode.ebuild.diff,1.87 KB, patch)
2007-01-07 21:52 UTC, Petr Pisar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.