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

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

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

* Alexey I. Froloff <raorn@> [041214 11:29]:
> Всвязи с этим вопрос - куда девать ГНУтое расширение под
> названием LANGUAGE?  Вариантов два:
Посмотрел как сделано в gettext...

Если есть LANGUAGE - использовать его, при условии что данная
категория локали не выставлена в "C"...

Однако берут меня сомнения...  У LC_ALL должен быть самый большой
приоритет.

-- 
Regards, Sir Raorn.
-------------------
Дефис AKA минус в именах пакетов использовать НЕЛЬЗЯ, это грех перед
Богом, за который вас заставят 1000 лет пересобирать пакеты в чистилище.
		-- mhz in devel@

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

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

* Re: [sisyphus] Re: [devel] Q: locale(7) hell
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Lykov @ 2004-12-14  9:27 UTC (permalink / raw)
  To: ALT Devel discussion list, ALT Linux Sisyphus

В сообщении от Вторник 14 Декабрь 2004 13:05 Alexey I. Froloff написал:

> Однако берут меня сомнения...  У LC_ALL должен быть самый большой
> приоритет.

я когда-то читал мнение, что LC_ALL - это вообще неверно и использовать не 
надо... типа, правильнее выставлять все по частям.
где читал - не помню, давно ;)

-- 
Mike Lykov
Samara, "Vesna" parfum company, System administrator 


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

* Re: [sisyphus] Re: [devel] Q: locale(7) hell
  2004-12-14  9:27   ` Mike Lykov
@ 2004-12-14 18:39     ` Andrey Rahmatullin
  0 siblings, 0 replies; 4+ messages in thread
From: Andrey Rahmatullin @ 2004-12-14 18:39 UTC (permalink / raw)
  To: sisyphus, ALT Devel discussion list

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

On Tue, Dec 14, 2004 at 01:27:50PM +0400, Mike Lykov wrote:
> я когда-то читал мнение, что LC_ALL - это вообще неверно и использовать не 
> надо... типа, правильнее выставлять все по частям.
> где читал - не помню, давно ;)
В рассылках кто-то такое мнение высказывал.

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):

Вы провоцируете меня на написание части второй моей версии ALT-HOWTO под
названием "Пользователи". :-)
Я считаю, что нам все еще нужно не количество пользователей, а качество.
		-- aen 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