This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Strange locale dependent sort behaviour


I just discovered something strange with the handling of eth with sort
-u and the no_NO locale.  Notice how the lower case ð disappear after
'sort -u' filter the output:

  % echo -e "Ð\nð\na\nA"|LANG=no_NO sort -u
  Ð
  A
  a
  % echo -e "Ð\nð\na\nA"|LANG=C sort -u
  A
  a
  Ð
  ð
  % echo -e "Ð\nð\na\nA"|LANG=nn_NO sort -u
  a
  A
  ð
  Ð
  %

This is with the locales from glibc 2.2.5 (Debian Woody).  Is this
normal behavoir for all characters not listed in the LC_COLLATE
section of a locale?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]