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: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: None
Planned Release: None

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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 04 Mar 2012 10:06:11 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 16 Oct 2011 12:38:24 PM UTCphcoderSummarygrub-1.99=>Wrong sorting with German locale

    Back to the top


    Powered by Savane 3.1-cleanup1