Bug#850490: grub-common: Some chinese chars can't be displayed with the included unicode.pf2
Zhang Jingqiang
zh_jq at outlook.com
Sat Jan 7 06:30:49 UTC 2017
Package: grub-common
Version: 2.02~beta3-3
Severity: normal
Dear Maintainer,
Some chars such as "载" int the following grub.cfg file can't be displayed
with the font file /usr/share/grub/unicode.pf2.
I download the stable version grub-common_2.02-beta2-22+deb8u1_amd64 and
use the font file included in it, that char can be displayed correctly.
I install ttf-unifont package, and use `grub-mkfont -o unicode.pf2 <path to unifont.ttf>`,
and use the result font file, the char is displayed, but there are some problems
with the font size as there's "underline" got displayed between lines.
The file size in current version is 1363163, while that is 2400500 in the stable version.
So I guess the current version doesn't contain all the unicode chars.
Just use the stable version is an acceptable solution for me,
though it may be better to regenerate one use the most recent version of unifont.
Thanks
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/sda4 / ext4 rw,noatime,discard,errors=remount-ro,data=ordered 0 0
/dev/sda2 /boot ext2 rw,noatime,nodiratime,block_validity,barrier,user_xattr,acl 0 0
/dev/sda5 /opt ext4 rw,noatime,discard,data=ordered 0 0
/dev/sda6 /home ext4 rw,noatime,discard,data=ordered 0 0
/dev/sda1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 7255d155-fea2-42e5-9786-5e7285794cca
else
search --no-floppy --fs-uuid --set=root 7255d155-fea2-42e5-9786-5e7285794cca
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=zh_CN
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 7255d155-fea2-42e5-9786-5e7285794cca
else
search --no-floppy --fs-uuid --set=root 7255d155-fea2-42e5-9786-5e7285794cca
fi
insmod png
if background_image /usr/share/desktop-base/softwaves-theme/grub/grub-16x9.png; then
set color_normal=white/black
set color_highlight=black/white
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 ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7255d155-fea2-42e5-9786-5e7285794cca' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2df07543-1e50-4fb2-a2e9-10567cfdc928
else
search --no-floppy --fs-uuid --set=root 2df07543-1e50-4fb2-a2e9-10567cfdc928
fi
echo '载入 Linux 4.9.0-rc8-amd64 ...'
linux /vmlinuz-4.9.0-rc8-amd64 root=UUID=7255d155-fea2-42e5-9786-5e7285794cca ro quiet splash
echo '载入初始化内存盘...'
initrd /initrd.img-4.9.0-rc8-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-7255d155-fea2-42e5-9786-5e7285794cca' {
menuentry 'Debian GNU/Linux,Linux 4.9.0-rc8-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-rc8-amd64-advanced-7255d155-fea2-42e5-9786-5e7285794cca' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2df07543-1e50-4fb2-a2e9-10567cfdc928
else
search --no-floppy --fs-uuid --set=root 2df07543-1e50-4fb2-a2e9-10567cfdc928
fi
echo '载入 Linux 4.9.0-rc8-amd64 ...'
linux /vmlinuz-4.9.0-rc8-amd64 root=UUID=7255d155-fea2-42e5-9786-5e7285794cca ro quiet splash
echo '载入初始化内存盘...'
initrd /initrd.img-4.9.0-rc8-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.9.0-rc8-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-rc8-amd64-recovery-7255d155-fea2-42e5-9786-5e7285794cca' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2df07543-1e50-4fb2-a2e9-10567cfdc928
else
search --no-floppy --fs-uuid --set=root 2df07543-1e50-4fb2-a2e9-10567cfdc928
fi
echo '载入 Linux 4.9.0-rc8-amd64 ...'
linux /vmlinuz-4.9.0-rc8-amd64 root=UUID=7255d155-fea2-42e5-9786-5e7285794cca ro single
echo '载入初始化内存盘...'
initrd /initrd.img-4.9.0-rc8-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Jan 7 14:14 ata-SAMSUNG_SSD_PM851_M.2_2280_128GB_S1D2NYAFB09169 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 7 14:14 ata-SAMSUNG_SSD_PM851_M.2_2280_128GB_S1D2NYAFB09169-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 7 14:14 ata-SAMSUNG_SSD_PM851_M.2_2280_128GB_S1D2NYAFB09169-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 7 14:14 ata-SAMSUNG_SSD_PM851_M.2_2280_128GB_S1D2NYAFB09169-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jan 7 14:14 ata-SAMSUNG_SSD_PM851_M.2_2280_128GB_S1D2NYAFB09169-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jan 7 14:14 ata-SAMSUNG_SSD_PM851_M.2_2280_128GB_S1D2NYAFB09169-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jan 7 14:14 ata-SAMSUNG_SSD_PM851_M.2_2280_128GB_S1D2NYAFB09169-part6 -> ../../sda6
lrwxrwxrwx 1 root root 9 Jan 7 14:14 wwn-0x5002538844584d30 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 7 14:14 wwn-0x5002538844584d30-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 7 14:14 wwn-0x5002538844584d30-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 7 14:14 wwn-0x5002538844584d30-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jan 7 14:14 wwn-0x5002538844584d30-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jan 7 14:14 wwn-0x5002538844584d30-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jan 7 14:14 wwn-0x5002538844584d30-part6 -> ../../sda6
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jan 7 14:14 2df07543-1e50-4fb2-a2e9-10567cfdc928 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 7 14:14 3f363143-fc62-4afc-9b79-65103c701c87 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jan 7 14:14 7255d155-fea2-42e5-9786-5e7285794cca -> ../../sda4
lrwxrwxrwx 1 root root 10 Jan 7 14:14 807A-CAEF -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 7 14:14 cf6f48f4-8d9f-4666-866b-5ff826983af3 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jan 7 14:14 f86cd9ce-efc9-4b15-a8b6-f5a2d462379a -> ../../sda6
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-rc8-amd64 (SMP w/4 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages grub-common depends on:
ii gettext-base 0.19.8.1-1
ii libc6 2.24-8
ii libdevmapper1.02.1 2:1.02.137-1
ii libfreetype6 2.6.3-3+b1
ii libfuse2 2.9.7-1
ii liblzma5 5.2.2-1.2
Versions of packages grub-common recommends:
ii os-prober 1.71
Versions of packages grub-common suggests:
pn console-setup <none>
ii desktop-base 9.0.0
pn grub-emu <none>
pn multiboot-doc <none>
pn xorriso <none>
-- no debconf information
More information about the Pkg-grub-devel
mailing list