Comment 3 for bug 406142

Revision history for this message
Felix Zielcke (fzielcke) wrote : Re: [Bug 406142] Re: Grub2 menu doesn't list entries with foreign characters

Am Mittwoch, den 29.07.2009, 21:28 +0000 schrieb Yves Lavoie:
> On 09-07-29 05:03 PM, Felix Zielcke wrote:
> > I can't reproduce this with current Debian sid version.
> > Maybe the parser bug fixes fixed that too.
> > Even with ascii.pf2 instead of unicode.pf2 they still get shown but of course with ? instead of the character.
> >
> Current code in kernel/misc.c ( grub_alpha and grub_isprint) explicitly
> forbid ASCII codes greater than '~'. Thus, entry shouldn't be recognized.
> Am I right?
>

They're not used for printing the menu.
I'm not familiar with the menu and graphical subsystem but
`rgrep grub_alpha normal/' doestn't show anything
and `rgrep grub_isprintf normal/' only shows normal/cmdline.c
(grub_cmdline_get) and normal/menu_entry.c (grub_menu_entry_run)
and the command above that function says:
/* Edit a menu entry with an Emacs-like interface. */

normal/menu_text.c (print_entry) has this:
  len = grub_utf8_to_ucs4 (unicode_title, title_len,
                           (grub_uint8_t *) title, -1, 0);

So UTF8 should be supported as long as unicode.pf2 of course is used.
Maybe your grub.cfg has wrong encoding?

--
Felix Zielcke
Proud Debian Maintainer