Grub adds an empty but active line when detecting another OS which has non-UTF-8 data in its name

Bug #438095 reported by Nicolas DERIVE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-prober (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: grub2

I have another OS (Windows) recognised by grub2 :

nicolas@lightening-storm:~$ sudo update-grub
[sudo] password for nicolas:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-11-generic
Found initrd image: /boot/initrd.img-2.6.31-11-generic
Found linux image: /boot/vmlinuz-2.6.31-10-generic
Found initrd image: /boot/initrd.img-2.6.31-10-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP �dition familiale on /dev/sda1
Found Windows NT/2000/XP on /dev/sda3
done

But as you can see the "É" of "Édition familiale" (family edition in english) is from another charset and leads grub to add an empty line in the list of the OS to choose on boot (empty line because of no text displayed, but there is a line !), but I can choose this empty line and this is the one which allows me to start Windows.

It's annoying as it's hard to guess that the empty line can start Windows if you don't know this...

It occurs with French edition of Windows, but maybe with any OS name which has hyphens in its name.

ProblemType: Bug
Architecture: i386
CheckboxSubmission: e118220d3d8d9933f55f82b805f8d7a6
CheckboxSystem: 0886efe3e95f2342b20ae33cd4eb5c2a
Date: Mon Sep 28 13:51:41 2009
DistroRelease: Ubuntu 9.10
Package: grub-pc 1.97~beta3-1ubuntu6
ProcEnviron:
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: grub2
Tags: ubuntu-unr
Uname: Linux 2.6.31-11-generic i686

Related branches

Revision history for this message
Nicolas DERIVE (kalon33) wrote :
summary: Grub adds an empty but active line when detecting another OS which has
- an accent in its name
+ an hyphen in its name
Revision history for this message
Nicolas DERIVE (kalon33) wrote : Re: Grub adds an empty but active line when detecting another OS which has an hyphen in its name

still occurs in Karmic, mark as regression potential as it seems to me it wasn't happened with grub legacy.

tags: added: regression-potential
Colin Watson (cjwatson)
summary: Grub adds an empty but active line when detecting another OS which has
- an hyphen in its name
+ non-UTF-8 data in its name
Revision history for this message
Colin Watson (cjwatson) wrote :

We're *supposed* to already have some protection against this. Could you please attach the boot.ini file from your Windows partition on /dev/sda1 to this bug report? Please make sure to attach it directly, rather than copying and pasting it into the report or whatever; I need to look at the file encoding and copy/paste would probably interfere with that.

Changed in grub2 (Ubuntu):
status: New → Incomplete
affects: grub2 (Ubuntu) → os-prober (Ubuntu)
Revision history for this message
Nicolas DERIVE (kalon33) wrote :

Hello Colin, thanks for taking care of this, here is the file, mark it as new again as I attached the file you're asking for.

Changed in os-prober (Ubuntu):
status: Incomplete → New
Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 438095] Re: Grub adds an empty but active line when detecting another OS which has non-UTF-8 data in its name

Thanks! I've committed a fix upstream.

 status fixcommitted

Changed in os-prober (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package os-prober - 1.35

---------------
os-prober (1.35) unstable; urgency=medium

  * Set LC_ALL=C when grepping out accented characters from Windows
    descriptions (LP: #438095).

 -- Colin Watson <email address hidden> Tue, 06 Oct 2009 09:12:12 +0100

Changed in os-prober (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.