Unix questions - sort does not seem to work "correctly"

This is Interesting: Free IT Magazines  
Home > Archive > Unix questions > January 2005 > sort does not seem to work "correctly"





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author sort does not seem to work "correctly"
Luciano

2005-01-24, 2:48 am

Hi,

I use sort to sort a file containing german words.
The problem is as follow:

the german alphabet has vowels with "umlaut", i.e.
a with two dots on top written =E4.
I would like to sort my file in such a way that
a with umlaut is considered like an a, as
is done in germans dictionary,
but sort does not do it.

os: Linux slackware 9.x

Any idea?
Luciano

jpd

2005-01-24, 7:47 am

Begin <Pine.GSO.4.44.0501240843340.24878-100000@unics>
On 2005-01-24, Luciano <nhbfluci@rrzn-user.uni-hannover.de> wrote:
> I use sort to sort a file containing german words.

[snip]
> I would like to sort my file in such a way that
> a with umlaut is considered like an a, as
> is done in germans dictionary,
> but sort does not do it.


It should if you feed it the correct locale: The environment variable
LC_COLLATE should be set appropiately. (Set to de_DE.ISO8859-15 or
possibly de_DE.UTF-8, depending on the encoding used in your file.)


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com