Debian Bug report logs - #543668
grub-pc: grub skips entries with accent in title

Package: os-prober; Maintainer for os-prober is Debian Install System Team <debian-boot@lists.debian.org>; Source for os-prober is src:os-prober.

Reported by: Christophe Lohr <Christophe.Lohr@telecom-bretagne.eu>

Date: Wed, 26 Aug 2009 12:45:02 UTC

Severity: normal

Done: Samuel Thibault <sthibault@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#543668; Package grub-pc. (Wed, 26 Aug 2009 12:45:16 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christophe Lohr <Christophe.Lohr@telecom-bretagne.eu>:
New Bug report received and forwarded. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Wed, 26 Aug 2009 12:45:17 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Christophe Lohr <Christophe.Lohr@telecom-bretagne.eu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: grub-pc: grub skips entries with accent in title
Date: Wed, 26 Aug 2009 14:09:53 +0200
Package: grub-pc
Version: 1.96+20090808-1
Severity: normal

Hi,
  os-prober finds the following OS on my system:       
# os-prober 
/dev/hda1:Microsoft Windows XP �dition familiale:Windows:chain

....in french... with an e acute encoded in iso-latin-1.

Then, the corresponding entry built by update-grub has an accent in the title
(see grub.cfg). Unfortunately, grub ignores this entry at boot time!

Regards.


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/6d0318ec-f11f-4a52-bfff-82fb98b7534d / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,2)
search --no-floppy --fs-uuid --set 6d0318ec-f11f-4a52-bfff-82fb98b7534d
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output.gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,2)
search --no-floppy --fs-uuid --set 6d0318ec-f11f-4a52-bfff-82fb98b7534d
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 6d0318ec-f11f-4a52-bfff-82fb98b7534d
	linux	/boot/vmlinuz-2.6.30-1-686 root=UUID=6d0318ec-f11f-4a52-bfff-82fb98b7534d ro  quiet
	initrd	/boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686 (recovery mode)" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 6d0318ec-f11f-4a52-bfff-82fb98b7534d
	linux	/boot/vmlinuz-2.6.30-1-686 root=UUID=6d0318ec-f11f-4a52-bfff-82fb98b7534d ro single 
	initrd	/boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-686" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 6d0318ec-f11f-4a52-bfff-82fb98b7534d
	linux	/boot/vmlinuz-2.6.26-2-686 root=UUID=6d0318ec-f11f-4a52-bfff-82fb98b7534d ro  quiet
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-686 (recovery mode)" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 6d0318ec-f11f-4a52-bfff-82fb98b7534d
	linux	/boot/vmlinuz-2.6.26-2-686 root=UUID=6d0318ec-f11f-4a52-bfff-82fb98b7534d ro single 
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, Linux 2.6.24-etchnhalf.1-686" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 6d0318ec-f11f-4a52-bfff-82fb98b7534d
	linux	/boot/vmlinuz-2.6.24-etchnhalf.1-686 root=UUID=6d0318ec-f11f-4a52-bfff-82fb98b7534d ro  quiet
	initrd	/boot/initrd.img-2.6.24-etchnhalf.1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.24-etchnhalf.1-686 (recovery mode)" {
	set root=(hd0,2)
	search --no-floppy --fs-uuid --set 6d0318ec-f11f-4a52-bfff-82fb98b7534d
	linux	/boot/vmlinuz-2.6.24-etchnhalf.1-686 root=UUID=6d0318ec-f11f-4a52-bfff-82fb98b7534d ro single 
	initrd	/boot/initrd.img-2.6.24-etchnhalf.1-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP �dition familiale (on /dev/hda1)" {
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 320d-180e
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.27          Debian configuration management sy
ii  grub-common              1.96+20090808-1 GRand Unified Bootloader, version 
ii  libc6                    2.9-23          GNU C Library: Shared libraries
ii  ucf                      3.0018          Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.5      common files for the Debian Deskto
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem

-- debconf information:
* grub-pc/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true
  grub-pc/postrm_purge_boot_grub: false
* grub-pc/install_devices: /dev/hda




Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#543668; Package grub-pc. (Tue, 09 Feb 2010 12:42:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Tue, 09 Feb 2010 12:42:05 GMT) Full text and rfc822 format available.

Message #10 received at 543668@bugs.debian.org (full text, mbox):

From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: 543668@bugs.debian.org
Subject: Re: grub skips entries with accent in title
Date: Tue, 09 Feb 2010 13:37:52 +0100
[Message part 1 (text/plain, inline)]
Looks like you actually have 2 problems:
1) os-prober giving information in latin1 and not utf-8.
Can you run:
sudo os-prober > report.bin
then send resulting report.bin? Don't forget .bin to avoid file to be
reencoded
2) grub fails on incorrect UTF-8. I fixed it in upstream but it's not
packaged yet. Can you try latest upstream?

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[signature.asc (application/pgp-signature, attachment)]

Bug reassigned from package 'grub-pc' to 'os-prober'. Request was from Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> to control@bugs.debian.org. (Sun, 17 Oct 2010 21:36:04 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions grub2/1.96+20090808-1. Request was from Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> to control@bugs.debian.org. (Sun, 17 Oct 2010 21:36:04 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#543668; Package os-prober. (Sun, 17 Oct 2010 21:57:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Thibault <sthibault@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sun, 17 Oct 2010 21:57:09 GMT) Full text and rfc822 format available.

Message #19 received at 543668@bugs.debian.org (full text, mbox):

From: Samuel Thibault <sthibault@debian.org>
To: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>, 543668@bugs.debian.org
Subject: Re: Bug#543668: grub skips entries with accent in title
Date: Sun, 17 Oct 2010 23:55:20 +0200
clone 543668 -1
retitle -1 should detect windows encoding to properly convert windows boot title
severity -1 wishlist
thanks

Vladimir 'φ-coder/phcoder' Serbinenko, le Tue 09 Feb 2010 13:37:52 +0100, a écrit :
> Looks like you actually have 2 problems:
> 1) os-prober giving information in latin1 and not utf-8.
> Can you run:
> sudo os-prober > report.bin
> then send resulting report.bin? Don't forget .bin to avoid file to be
> reencoded

This is actually fixed by the following:

			# Colons not allowed; replace by spaces
			# Accented characters (non UTF-8) cause debconf to
			# hang, so we fall back to the default if the name
			# contains any weird characters.
			long="$(grep -e "$grepexp" "$2/$ini" | cut -d '"' -f2 | \
				tr ':' ' ' | LC_ALL=C grep -v '[^a-zA-Z0-9 &()/_-]')"

That's however a bit poor, so cloning a wishlist bug. Phcoder suggested
on irc to use bootfont.bin to know the encoding, possibly simply through
a hash table of well-known font files.

Samuel




Bug 543668 cloned as bug 600541. Request was from Samuel Thibault <sthibault@debian.org> to control@bugs.debian.org. (Sun, 17 Oct 2010 21:57:10 GMT) Full text and rfc822 format available.

Reply sent to Samuel Thibault <sthibault@debian.org>:
You have taken responsibility. (Sun, 17 Oct 2010 22:03:03 GMT) Full text and rfc822 format available.

Notification sent to Christophe Lohr <Christophe.Lohr@telecom-bretagne.eu>:
Bug acknowledged by developer. (Sun, 17 Oct 2010 22:03:03 GMT) Full text and rfc822 format available.

Message #26 received at 543668-done@bugs.debian.org (full text, mbox):

From: Samuel Thibault <sthibault@debian.org>
To: 543668-done@bugs.debian.org
Subject: Re: Bug#543668: grub skips entries with accent in title
Date: Mon, 18 Oct 2010 00:01:40 +0200
Really closing now that it's cloned.

Samuel




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 15 Nov 2010 07:34:54 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 10:31:51 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.