bugGNU GRUB - Bugs: bug #34522, Wrong sorting with German locale

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34522: Wrong sorting with German locale

Submitted by:  Moritz Schlarb <moschlar>
Submitted on:  Mon 10 Oct 2011 07:30:04 PM UTC
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release: 
Release:  * other Reproducibility:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Sun 16 Oct 2011 01:17:23 PM UTC, comment #5: 

Minimal testcase is:
echo -e 3.0.0 \\n2.6.38|LC_NUMERIC=de_DE.UTF-8 sort -n
it sorts them in a wrong order but
echo -e 3.0.0 \\n2.6.38|LANG=de_DE.UTF-8 LC_NUMERIC=C sort -n
sorts them right.

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 16 Oct 2011 01:03:25 PM UTC, comment #4: 

Thats strange, and I tested sorting `ls` output with different locales, but couldn't see this issue there, so I thought it wouldn't be a general locale problem (which would be libc then...)

Moritz Schlarb <moschlar>
Sun 16 Oct 2011 12:53:35 PM UTC, comment #3: 

The funny thing is that it doesn't happen with Swiss German (our) locale but happens with German one

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 16 Oct 2011 12:44:04 PM UTC, comment #2: 

I'm sorry, I must have overlooked the subject field while submitting the bug... ;)
Thanks for changing it!

Moritz Schlarb <moschlar>
Sun 16 Oct 2011 12:38:24 PM UTC, comment #1: 

Such undescriptive title usually makes debugging slower. Renaming.
It may have something to do with the '2' being a better school mark in Germany (just kidding).

Vladimir Serbinenko <phcoder>
Project Administrator
Mon 10 Oct 2011 07:30:04 PM UTC, original submission:  

When using LANG="de_DE.UTF-8", grub-mkconfig is sorting kernels incorrect:

E.g.:
 $ grub2-mkconfig -o /dev/null
Generating grub.cfg ...
Found linux image: /boot/kernel-2.6.39.3
[...]
Found linux image: /boot/kernel-2.6.36-gentoo-r8
Found linux image: /boot/kernel-3.0.4-gentoo-r1
[...]
Found linux image: /boot/kernel-3.0.1
Found linux image: /boot/kernel-3.0-gentoo
Found linux image: /boot/kernel-3.0
  No volume groups found
done
vs.:
 $ LANG=C grub2-mkconfig -o /dev/null
Generating grub.cfg ...
Found linux image: /boot/kernel-3.0.4-gentoo-r1
[...]
Found linux image: /boot/kernel-3.0.1
Found linux image: /boot/kernel-3.0-gentoo
Found linux image: /boot/kernel-3.0
Found linux image: /boot/kernel-2.6.39.3
[...]
Found linux image: /boot/kernel-2.6.36-gentoo-r8
  No volume groups found
done

This happens in Gentoos ebuild sys-boot/grub-1.99-r2, which uses official grub-1.99.tar.gz source tarball without patches to grub-mkconfig_lib

Moritz Schlarb <moschlar>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by moschlar (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-03-04 phcoder StatusNone => Fixed
        Open/ClosedOpen => Closed
    2011-10-16 phcoder Summarygrub-1.99 => Wrong sorting with German locale

    Back to the top


    Powered by Savane 3.9