[Pkg-xen-devel] Bug#865086: Bug#865086: xen-hypervisor-4.8-amd64: Default grub entry broken with locales (how to reproduce)

Hans van Kranenburg hans at knorrie.org
Fri Oct 26 14:04:41 BST 2018


tags 865086 pending
thanks

On 10/26/18 2:26 PM, Ian Jackson wrote:
> Hans van Kranenburg writes ("[Pkg-xen-devel] Bug#865086: xen-hypervisor-4.8-amd64: Default grub entry broken with locales (how to reproduce)"):
>> What am I doing wrong, so that the first test already doesn't give me:
>> "Debian GNU/Linux, met Xen-hypervisor"
> 
> You are missing the -d option to gettext.
> 
> root at thule:~# LANGUAGE=nl_NL.UTF-8 LANG=nl_NL.UTF-8 gettext -d grub '%s, with Xen hypervisor'; echo
> %s, met Xen-hypervisor
> root at thule:~# LANGUAGE=nl_NL.UTF-8 LANG=nl_NL.UTF-8 TEXTDOMAIN=grub gettext '%s, with Xen hypervisor'; echo
> %s, met Xen-hypervisor

Ah, thanks. It needs to know in what translation file it has to search,
that makes sense yes.

> To reproduce the bug you have to not have GRUB_TERMINAL set (or set to
> `gfxterm'), because grub-mkconfig thinks that other GRUB_TERMINAL
> values including `serial' preclude non-ASCII characters, and that
> causes it to set LANG=C.  (Look in /etc/default/grub.)

Aha! That explains.

I have ..

GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --unit=1 --speed=115200 --word=8 --parity=no
--stop=1"

..and that's why update-grub still shows me messages in english etc, and
the end result is not translated.

If I comment this, then:

-# update-grub
Including Xen overrides from /etc/default/grub.d/xen.cfg
WARNING: GRUB_DEFAULT changed to boot into Xen by default!
         Edit /etc/default/grub.d/xen.cfg to avoid this warning.
Aanmaken van GRUB-configuratiebestand...
Linux-image gevonden: /boot/vmlinuz-4.18.0-2-amd64
Initiële RAM-schijf-image gevonden: /boot/initrd.img-4.18.0-2-amd64
Linux-image gevonden: /boot/vmlinuz-4.18.0-1-amd64
Initiële RAM-schijf-image gevonden: /boot/initrd.img-4.18.0-1-amd64
Linux-image gevonden: /boot/vmlinuz-4.18.0-2-amd64
Initiële RAM-schijf-image gevonden: /boot/initrd.img-4.18.0-2-amd64
Linux-image gevonden: /boot/vmlinuz-4.18.0-1-amd64
Initiële RAM-schijf-image gevonden: /boot/initrd.img-4.18.0-1-amd64
Linux-image gevonden: /boot/vmlinuz-4.18.0-2-amd64
Initiële RAM-schijf-image gevonden: /boot/initrd.img-4.18.0-2-amd64
Linux-image gevonden: /boot/vmlinuz-4.18.0-1-amd64
Initiële RAM-schijf-image gevonden: /boot/initrd.img-4.18.0-1-amd64
Linux-image gevonden: /boot/vmlinuz-4.18.0-2-amd64
Initiële RAM-schijf-image gevonden: /boot/initrd.img-4.18.0-2-amd64
Linux-image gevonden: /boot/vmlinuz-4.18.0-1-amd64
Initiële RAM-schijf-image gevonden: /boot/initrd.img-4.18.0-1-amd64
voltooid

...and...

-# grep Xen /boot/grub/grub.cfg |sed 's/ --class.*//;s/\$menuentry.*//'
   set default="Debian GNU/Linux, with Xen hypervisor"
menuentry 'Debian GNU/Linux, met Xen-hypervisor'
	echo	'Laden van Xen 4.11-amd64...'
submenu 'Geavanceerde opties voor Debian GNU/Linux (met Xen-hypervisor)'
	submenu 'Xen-hypervisor, versie 4.11-amd64'
		menuentry 'Debian GNU/Linux, met Xen 4.11-amd64 en Linux 4.18.0-2-amd64'
			echo	'Laden van Xen 4.11-amd64...'
		menuentry 'Debian GNU/Linux, met Xen 4.11-amd64 en Linux 4.18.0-1-amd64'
			echo	'Laden van Xen 4.11-amd64...'
	submenu 'Xen-hypervisor, versie 4.11-amd64.efi'
		menuentry 'Debian GNU/Linux, met Xen 4.11-amd64.efi en Linux
4.18.0-2-amd64'
			echo	'Laden van Xen 4.11-amd64.efi...'
		menuentry 'Debian GNU/Linux, met Xen 4.11-amd64.efi en Linux
4.18.0-1-amd64'
			echo	'Laden van Xen 4.11-amd64.efi...'
	submenu 'Xen-hypervisor, versie 4.11-amd64.config'
		menuentry 'Debian GNU/Linux, met Xen 4.11-amd64.config en Linux
4.18.0-2-amd64'
			echo	'Laden van Xen 4.11-amd64.config...'
		menuentry 'Debian GNU/Linux, met Xen 4.11-amd64.config en Linux
4.18.0-1-amd64'
			echo	'Laden van Xen 4.11-amd64.config...'


So, everything is translated. Well, except the "Including Xen overrides
from" things.

And now I understand the patch, and it totally makes sense to me.

Applied.

Hans



More information about the Pkg-xen-devel mailing list