Mailinglist Archive: opensuse-factory (883 mails)

< Previous Next >
Re: [opensuse-factory] Re: collation bug in locales using UTF-8 (cur= a<A<b<B<z<Z; should be A<B<C<Z<a<b<c<z)

On Monday 2012-05-28 02:11, Linda Walsh wrote:
Anders Johansson wrote:

In any case, there is no way you are ever going to get a standard sorting
order for the whole world.

There already is one.

The Unicode specification already specifies collation order for all the
languages it covers.

I'm pointing out that for the Latin character set the A-Z sort before a-z.
This isn't the case under SuSE.

The collation order for many locales with a Latin-like character set
is indeed Aa..Zz or aA..zZ. Phone books, word dictionaries - they all
work like that. Observe:

LC_COLLATE=de_DE.UTF-8 ls
a A å Å ä Ä æ Æ b B ö Ö ø Ø ß w W z Z
LC_COLLATE=nb_NO.UTF-8 ls
A a B b ß W w Z z Æ æ Ä ä Ø ø Ö ö Å å
LC_COLLATE=sv_SE.UTF-8 ls
a A b B ß w W z Z å Å ä Ä æ Æ ö Ö ø Ø

Collating in A..Za..z fashion is reserved for the "POSIX" locale.
If you want that, set it.

export LC_COLLATE=POSIX

or in /etc/sysconfig/language RC_LC_COLLATE.
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >