Bug#850490: grub-common: Some chinese chars can't be displayed with the included unicode.pf2

Boyuan Yang 073plan at gmail.com
Mon Aug 28 14:18:16 UTC 2017


在 2017年8月28日星期一 CST 下午8:59:10,Boyuan Yang 写道:
> Control: reopen -1 =
> 
> This bug is still valid and should not be closed. I am reopening it here.
> 
> I believe the unifont included in grub should be the root cause of the bug.
> Any further investigation would be appreciated.
> 
> Thanks,
> Boyuan Yang

I got some interesting results from investigations.

If we try to locate unicode.pf2, we should get:

# locate unicode.pf2
/boot/grub/unicode.pf2
/boot/grub/fonts/unicode.pf2
/usr/share/grub/unicode.pf2

It's strange that we have *two* font files in /boot/grub/. The first one has a 
size of 1.4MiB  while the second one has the size of 2.3MiB.

Here are some tests:

* Remove /boot/grub/fonts/unicode.pf2: nothing happens.
* Remove /boot/grub/unicode.pf2: grub2 immediately fallbacks back to English 
and black-and-blue-colored theme.
* Run "dpkg-reconfigure grub-common: /boot/grub/unicode.pf2 copied from /usr/
share/grub/unicode.pf2; /boot/grub/fonts/unicode.pf2 not touched.

Well now I suggests that the path /boot/grub/unicode.pf2 is a mistake and 
should not exists.

I will make further tests with fresh-installed Debian Testing in VMs later.

--
Regards,
Boyuan Yang



More information about the Pkg-grub-devel mailing list