ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Q: locale(7) hell
@ 2004-12-14  8:28 Alexey I. Froloff
  2004-12-14  9:05 ` [sisyphus] Re: [devel] " Alexey I. Froloff
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey I. Froloff @ 2004-12-14  8:28 UTC (permalink / raw)
  To: ALT Devel discussion list; +Cc: ALT Linux Sisyphus

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

Занялся я тут переписыванием fortune-mod (ну не нравится мне как
оно написано!) и хочу сделать "как в Debian" (C), только лучше
;-)

В двух словах:

При поиске базы fortune(6) перебирает следующие пути:

FORTDIR/%LOCALE%
FORTDIR/%LOCALE_2%
FORTDIR/

где %LOCALE% - язык.  Определяется переменными LC_ALL,
LC_MESSAGES, LANG и LANGUAGE.  %LOCALE% - полное имя локали,
вместе с территорией и кодировкой, %LOCALE_2% - двухсимвольный
код языка.  Rationale: мне (ru_RU.KOI8-R) неинтересно читать
фортунки на белорусском или украинском языках - я просто ничего
не пойму.

С файлами данных в utf-8 тоже всё будет в порядке - fortune-mod
1.99.1, судя по исходникам, рассматривает базы как utf-8 если
видит рядом с базой файл с именем <имя_базы>.u8.

Всвязи с этим вопрос - куда девать ГНУтое расширение под
названием LANGUAGE?  Вариантов два:

LC_ALL
LC_MESSAGES
LANGUAGE.each
LANG

и

LC_ALL
LANGUAGE.each
LC_MESSAGES
LANG

Как правильно?

-- 
Regards, Sir Raorn.
-------------------
Пока мне не объяснят, как сделать так, чтобы воспроизвести это, я буду
считать, что всё нормально.
		-- ldv in devel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-14 18:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-14  8:28 [sisyphus] Q: locale(7) hell Alexey I. Froloff
2004-12-14  9:05 ` [sisyphus] Re: [devel] " Alexey I. Froloff
2004-12-14  9:27   ` Mike Lykov
2004-12-14 18:39     ` Andrey Rahmatullin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git