Re: sort does not seem to work "correctly"

From: jpd (read_the_sig_at_do.not.spam.it.invalid)
Date: 01/24/05


Date: 24 Jan 2005 10:13:36 GMT

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 .


Relevant Pages

  • Re: George H.W. Bush will help President Hillary
    ... were attacked by Russia, to toss out an extreme example, would Britain ... opinion swings to the other. ... we're not in any sort of declining position. ...
    (soc.retirement)
  • Re: George H.W. Bush will help President Hillary
    ... were attacked by Russia, to toss out an extreme example, would Britain ... opinion swings to the other. ... This thread started with the defense of the notion that there are some sort ...
    (soc.retirement)
  • Re: An epidemic of cannabis use?
    ... What on *EARTH* gives you the idea that you're in any sort of position ... It's just my opinion. ... bit arrogant sometimes, but then again, I am king of the universe. ...
    (uk.people.support.depression)
  • Re: Awww, how cute
    ... I get the same sort of reactions from people ... I think if we'd had all this internet malarky when I was at school, ...
    (uk.people.support.depression)
  • Re: JVM/Java memory footprint
    ... [snip lots of rant] ... ask mere mortals if they know the answer to your simpliest ... The least they are entitled to is to decide what *sort* of advice they give, ... Just a little comment in the middle of that rant for you.... ...
    (comp.lang.java.programmer)