ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexei V. Mezin" <mezin@ntmdt.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Неправильная сортировка в консоли?
Date: Fri, 13 Oct 2006 18:27:18 +0400
Message-ID: <452FA246.9050909@ntmdt.ru> (raw)
In-Reply-To: <957265820610130723n6d7fbd57i86d0a31c12c9fea5@mail.gmail.com>

Denis G. Samsonenko пишет:
Сортировка не зависит от того, как буквы расположены в кодовой
> таблице. В любой русской локали сортировка русских букв будет
> производиться согласно алфавита, а не положения в кодовой таблице. Для
> того локаль и ввели (в том числе), чтобы не зависеть от внетреннего
> представления символа.
> 

А как тогда объяснить это?

> 2. LC_COLLATE=C
> _
> ё
> ю
> а
> а_а
> а_б
> а_ф
> а_ш
> аа
> аб
> аф
> аш
> б
> ц
> д
> е
> ф

Тут спецсимволы учтены правильно, а вот буквы идут в порядке 
расположения в таблице КОИ8. Если бы локаль в системе была бы ср1251, то 
при такой сортировке порядок был бы правильным. Разве не так?

-- 
Alexei V. Mezin

NT-MDT Co.
Phone: 095-913-5736
Fax: 095-913-573
Email: mezin@ntmdt.ru
URL: http://www.ntmdt.com


  reply	other threads:[~2006-10-13 14:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-13 13:24 ` Sergey Stepanov
2006-10-13 13:36   ` Alexei V. Mezin
2006-10-13 14:01     ` Denis G. Samsonenko
2006-10-13 14:05       ` Alexei V. Mezin
2006-10-13 14:23         ` Denis G. Samsonenko
2006-10-13 14:27           ` Alexei V. Mezin [this message]
2006-10-13 14:31             ` Denis G. Samsonenko
2006-10-13 14:34               ` Alexei V. Mezin
2006-10-13 14:40                 ` Denis G. Samsonenko
2006-10-13 15:10                   ` Andriy Dobrovolkii
2006-10-13 14:00   ` Denis G. Samsonenko
2006-10-13 19:00     ` Yura Kalinichenko
2006-10-14  4:17       ` Denis G. Samsonenko

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=452FA246.9050909@ntmdt.ru \
    --to=mezin@ntmdt.ru \
    --cc=community@lists.altlinux.org \
    /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