#600541 should detect windows encoding to properly convert windows boot title

Package:
os-prober
Source:
os-prober
Description:
utility to detect other OSes on a set of drives
Submitter:
Christophe Lohr
Date:
2010-10-17 21:57:13 UTC
Severity:
wishlist
#600541#5
Date:
2009-08-26 12:09:53 UTC
From:
To:
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.

#600541#10
Date:
2010-02-09 12:37:52 UTC
From:
To:
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?

#600541#19
Date:
2010-10-17 21:55:20 UTC
From:
To:
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 :

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