bugGNU GRUB - Bugs: bug #47639, grub2-2.02: Some Chinese...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47639: grub2-2.02: Some Chinese characters are displayed as '?' with a border

Submitted by:  LiuYan <moontide>
Submitted on:  Thu 07 Apr 2016 08:35:04 AM UTC  
 
Category:  User Interface Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release: 
Release:  2.02~beta1 Reproducibility:  Every Time
Planned Release:  None

( Jump to the original submission)

Sun 09 Apr 2017 07:32:28 PM UTC, comment #10: 

> All characters from FF block I tried are correctly displayed under 2.02~rc2 (openSUSE Tumbleweed). So closing as fixed.


> https://savannah.nongnu.org/bugs/?47708


Thank you for identifying the source.

> All characters from FF block I tried are correctly displayed under 2.02~rc2 (openSUSE Tumbleweed)


Just let you known that Fedora 26 Alpha may fixed this issue too (/usr/share/grub/unicode.pf2 in is identical to unicode.pf2 in Fedora 22, which is correct). The freetype version is 2.7.1 in Fedora 26.

LiuYan <moontide>
Sun 09 Apr 2017 10:00:28 AM UTC, comment #9: 
Vladimir Serbinenko <phcoder>
Project Administrator
Sun 09 Apr 2017 09:53:30 AM UTC, comment #8: 

Using Leap grub (2.02~beta2) with font from Tumbleweed correctly displays all symbols. As there are no changes in grub-mkfont this looks indeed like system library issue. Do you happen to have reference to freetype bug?

Andrei Borzenkov <arvidjaar>
Project Member
Sun 09 Apr 2017 09:44:50 AM UTC, comment #7: 

All characters from FF block I tried are correctly displayed under 2.02~rc2 (openSUSE Tumbleweed). So closing as fixed.

Andrei Borzenkov <arvidjaar>
Project Member
Sun 09 Apr 2017 09:02:41 AM UTC, comment #6: 

I think it's a dupe of libfreetype bug.

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 09 Apr 2017 09:02:06 AM UTC, comment #5: 

I think this is a super of freetype bug.

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 09 Apr 2017 08:43:31 AM UTC, comment #4: 

> Displayed correctly here on openSUSE Leap 42.2. Please attach full grub.cfg that shows this problem.


The unicode.pf2 fonts are different between fedora and openSUSE.

Here're my /boot/grub2/grub.cfg and /boot/grub2/fonts/unicode.pf2 from openSUSE Leap 42.2. Note: unicode.pf2 is compressed by p7zip
The '?' character in grub.cfg of openSUSE is the full-width comma character: ',', not the '菜' character.

See the following file size and md5sum of several unicode.pf2 file.
The file size of normal one from Fedora 22 is 2560080, is larger than the size of other two from Fedora 23 and openSUSE Leap 42.2.

----------------------------------------

-rw-r--r-- 1 liuyan liuyan 2560080 12月 11 2015 unicode.pf2.fedora22正常显示汉字的版本
-rw------- 1 root   root   1343654 1月  13 2016 unicode.pf2.fedora23个别汉字显示为问号
-rw-r--r-- 1 root   root   1402889 3月  31 02:13 unicode.pf2.openSUSE-Leap-42.2

03a48cc9eb032c95489a8e31d9327288  unicode.pf2.fedora22正常显示汉字的版本
6a12e90df3e977cd5eec57a6c9b0b71a  unicode.pf2.fedora23个别汉字显示为问号
7fd94dab2f70de4c24bee39c0e014c95  unicode.pf2.openSUSE-Leap-42.2

----------------------------------------

(file #40335, file #40336)

LiuYan <moontide>
Sun 09 Apr 2017 05:56:45 AM UTC, comment #3: 

> add "菜单"("menu") characters in any menu entry


Displayed correctly here on openSUSE Leap 42.2. Please attach full grub.cfg that shows this problem.

Andrei Borzenkov <arvidjaar>
Project Member
Sat 08 Apr 2017 07:31:12 PM UTC, comment #2: 

'菜'
# echo -n 菜 | hexdump -C

                1. e8 8f 9c                                          |...|

# echo -n 菜 | iconv -t unicode | hexdump -C

                1. ff fe dc 83                                       |....|

',' (a full-width form of comma), this one came from screenshot of openSUSE

# echo -n , | hexdump -C

                1. ef bc 8c                                          |...|

# echo -n , | iconv -t unicode | hexdump -C

                1. ff fe 0c ff                                       |....|


LiuYan <moontide>
Sat 08 Apr 2017 06:36:29 PM UTC, comment #1: 

What is Unicode code position for this character?

Andrei Borzenkov <arvidjaar>
Project Member
Thu 07 Apr 2016 08:35:04 AM UTC, original submission:  

I noticed that grub2 in several distributions can't display some Chinese characters -- they are displayed as '?' with a border.

For Fedora, this issue happened after I upgraded to Fedora 23 from Fedora 22.

This issue also happened in Debian 8 unstable and openSUSE Tumbleweed.

How to reproduce:
  * Use default unicode.pf2 font file
  * Edit /boot/grub2/grub.conf, add "菜单"("menu") characters in any menu entry
  * Reboot to see if "菜" is displayed as '?'

LiuYan <moontide>

 

Attached Files
file #40335:  grub.cfg added by moontide (8KiB - application/octet-stream - grub.cfg and unicode.pf2 of openSUSE Leap 42.2)
file #40336:  unicode.pf2.openSUSE-Leap-42.2.7z added by moontide (471KiB - application/x-7z-compressed - grub.cfg and unicode.pf2 of openSUSE Leap 42.2)
file #40332:  VirtualBox_openSUSE Leap_09_04_2017_02_24_43.png added by moontide (162KiB - image/png - openSUSE-Leap-42.2, grub2-2.02~beta2)
file #40333:  VirtualBox_openSUSE Leap_09_04_2017_02_24_43.png added by moontide (162KiB - image/png - openSUSE-Leap-42.2, grub2-2.02~beta2)
file #40331:  VirtualBox_openSUSE Leap_09_04_2017_02_25_34.png added by moontide (84KiB - image/png - openSUSE-Leap-42.2, grub2-2.02~beta2)
file #40329:  VirtualBox_openSUSE Leap_09_04_2017_02_24_43.png added by moontide (162KiB - image/png - openSUSE-Leap-42.2, grub2-2.02~beta2)
file #40330:  VirtualBox_openSUSE Leap_09_04_2017_02_24_43.png added by moontide (162KiB - image/png - openSUSE-Leap-42.2, grub2-2.02~beta2)
file #36855:  debian 8 unstable, grub2-2.02~beta2-36.png added by moontide (41KiB - image/png - Screenshots of grub2 in Fedora 23 and Debian 8 unstable)
file #36854:  Fedora23, grub2-2.02-0.25.png added by moontide (5KiB - image/png - Screenshots of grub2 in Fedora 23 and Debian 8 unstable)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by moontide (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-09 arvidjaar StatusNone => Fixed
        Open/ClosedOpen => Closed
    2017-04-09 moontide Attached File- => Added grub.cfg, #40335
        Attached File- => Added unicode.pf2.openSUSE-Leap-42.2.7z, #40336
    2017-04-08 moontide Attached File- => Added VirtualBox_openSUSE Leap_09_04_2017_02_24_43.png, #40332
        Attached File- => Added VirtualBox_openSUSE Leap_09_04_2017_02_24_43.png, #40333
    2017-04-08 moontide Attached File- => Added VirtualBox_openSUSE Leap_09_04_2017_02_25_34.png, #40331
    2017-04-08 moontide Attached File- => Added VirtualBox_openSUSE Leap_09_04_2017_02_24_43.png, #40329
        Attached File- => Added VirtualBox_openSUSE Leap_09_04_2017_02_24_43.png, #40330
    2016-04-07 moontide Attached File- => Added Fedora23, grub2-2.02-0.25.png, #36854
        Attached File- => Added debian 8 unstable, grub2-2.02~beta2-36.png, #36855

    Back to the top


    Powered by Savane 3.7