Public bug reported:

Binary package hint: coreutils

I'm sorting this file:

$ cat prova.sort 
A somethin
AAAA something
AAAAAA something
something else

I see that sort acts differently with my locale (it_IT.UTF8) and C, but
in an unexpected manner:

$ cat prova.sort |sort
AAAAAA something
AAAA something
A somethin
something else


$ cat prova.sort |LC_ALL=C sort
A somethin
AAAA something
AAAAAA something
something else


Actually the space should have the same sorting in the 2 locales. It seems a bug

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: coreutils
  
  I'm sorting this file:
  
  $ cat prova.sort 
  A somethin
  AAAA something
  AAAAAA something
  something else
  
  I see that sort acts differently with my locale (it_IT.UTF8) and C, but
  in an unexpected manner:
  
  $ cat prova.sort |sort
  AAAAAA something
  AAAA something
  A somethin
  something else
  
  
  $ cat prova.sort |LC_ALL=C sort
  A somethin
  AAAA something
  AAAAAA something
  something else
  
  
- Actually the space should have the same sorting in the 2 locales. It seems a 
bug?
+ Actually the space should have the same sorting in the 2 locales. It seems a 
bug

-- 
different sorting in C and it_IT.UTF8 locale
https://bugs.launchpad.net/bugs/422252
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to