* [devel] Locale in glibc >=2.1.94
@ 2000-10-16 11:25 Alexander Bokovoy
0 siblings, 0 replies; only message in thread
From: Alexander Bokovoy @ 2000-10-16 11:25 UTC (permalink / raw)
To: devel
Добрый день!
Насколько я понял, с последними версиями GLIBC gettext научился перекодировать
сообщения в текущую кодировку консоли, если кодировка в локали совпадает с исходным
переводом в gettext. Пример:
Стоит be_BY.CP1251, кодировка консоли CP1251, в rpm переводов для be_BY нет, как нет
и для ru_RU.CP1251. Делаем
LANG=be_BY.CP1251 && rpm --help
и получаем английский текст.
LANG=ru_RU.CP1251 && rpm --help
дает русский текст, неперекодированный в CP1251 ("абракадабра")
LANG=ru_RU.KOI8-R && rpm --help
дает русский текст, перекодированный в CP1251, при том, что оригинал лежит в KOI8-R.
Нигде в документации на glibc я не нашел ни слова об этом поведении.
--
Sincerely yours, Alexander Bokovoy
The Midgard Project | www.midgard-project.org | Aurora R&D team
Minsk Linux Users Group | www.minsk-lug.net | www.aurora-linux.com
IPLabs Linux Team | linux.iplabs.ru | Architecte Open Source
-- "Humor is a drug which it's the fashion to abuse."
-- William Gilbert
_______________________________________________
Devel mailing list
Devel@linux.iplabs.ru
http://www.logic.ru/mailman/listinfo/devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-10-16 11:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-16 11:25 [devel] Locale in glibc >=2.1.94 Alexander Bokovoy
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git