ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Stepanov <dlagovna@mail.ru>
To: Pavel Usischev <usischev@gmail.com>
Cc: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Неправильная сортировка в консоли?
Date: Fri, 13 Oct 2006 03:05:53 +0400
Message-ID: <E1GY9cf-000PZP-00.dlagovna-mail-ru@f23.mail.ru> (raw)
In-Reply-To: =?koi8-r?Q?<452EBF27.8030202=40gmail.com>?=


> А теперь сравните с таким ответом:
> 
> $ locale |grep LC_COLLATE
> LC_COLLATE="ru_RU.KOI8-R"
> $ LC_COLLATE=C
> $ locale |grep LC_COLLATE
> LC_COLLATE="ru_RU.KOI8-R"
> $ export LC_COLLATE
> $ locale |grep LC_COLLATE
> LC_COLLATE=C
> 
> На причины происходящего, кстати, в этой ветке было указано.

Ага. Непонятно другое.

1. Программы типа sort и ls не пользуются механизмом locale, 
а берут данные из системной переменной LC_COLLATE? Пример.

# locale |grep LC_COLLATE
LC_COLLATE="ru_RU.KOI8-R"

# ls -1
bet_eng.png
bet_esp.png
betperline_eng.png
betperline_esp.png
betperline_por.png
bet_por.png

# LC_COLLATE=C
# set | grep LC_COLLATE
LC_COLLATE=C
# locale |grep LC_COLLATE
LC_COLLATE="ru_RU.KOI8-R"

# ls -1
bet_eng.png
bet_esp.png
bet_por.png
betperline_eng.png
betperline_esp.png
betperline_por.png


2. Насколько я понял, locale выставляет свои переменные
согласно значению LC_ALL. Существуют какие-то таблицы,
которые по значению LC_ALL выставляют все переменные
locale в нужные значения. Вопрос. Почему разрешен
экспорт системных переменных в пространство locale?
Ведь таким образом нарушается сама идея локализации
через locale. Почему бы в таком случае не пользоваться 
просто системными LC-переменными???


Со всяческими пожеланиями, Сергей.
http://xi.net.ru



       reply	other threads:[~2006-10-12 23:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 23:05 ` Sergey Stepanov [this message]
2006-10-13  2:23   ` Denis G. Samsonenko
2006-10-12 23:49 ` Sergey Stepanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GY9cf-000PZP-00.dlagovna-mail-ru@f23.mail.ru \
    --to=dlagovna@mail.ru \
    --cc=community@lists.altlinux.org \
    --cc=usischev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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