After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 580073 - vte messes GNU screen display
vte messes GNU screen display
Status: RESOLVED NOTGNOME
Product: vte
Classification: Core
Component: general
0.20.x
Other All
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-24 06:27 UTC by difeiz
Modified: 2015-12-26 13:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
normal display (30.95 KB, image/png)
2009-05-07 14:54 UTC, Deng Xiyue
Details
garbled display (27.24 KB, image/png)
2009-05-07 14:58 UTC, Deng Xiyue
Details

Description difeiz 2009-04-24 06:27:37 UTC
Please describe the problem:
Please refer to Debian bug #525374 for the information.[1]

1. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525374

Steps to reproduce:
as I described in the link.

Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Christian Persch 2009-04-24 10:11:27 UTC
Please file all relevant information in gnome bugzilla instead of just pointing to another bug tracker.
Comment 2 Deng Xiyue 2009-04-25 19:07:49 UTC
The original bug information as requested:


-------------------------------BEGIN--------------------------------
Package: libvte9
Version: 1:0.20.1-1
Severity: important

Greetings,

 Recent upload of vte breaks the GNU screen display in GBK encoded
terminals. Please try to cat the attach file (GBK encoded) in a normal
terminal emulator set to GBK encoding, then in GNU screen set
":encoding gbk" and cat the file to see the differences. Thanks!

Difei


-- System Information:
Debian Release: squeeze/sid
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libvte9 depends on:
ii  libatk1.0-0               1.24.0-2       The ATK accessibility toolkit
ii  libc6                     2.9-7          GNU C Library: Shared libraries
ii  libcairo2                 1.8.6-2+b1     The Cairo 2D vector graphics libra
ii  libfontconfig1            2.6.0-3        generic font configuration library
ii  libfreetype6              2.3.9-4        FreeType 2 font engine, shared lib
ii  libglib2.0-0              2.20.1-1       The GLib library of C routines
ii  libgtk2.0-0               2.16.1-2       The GTK+ graphical user interface
ii  libncurses5               5.7+20090404-1 shared libraries for terminal hand
ii  libpango1.0-0             1.24.0-3+b1    Layout and rendering of internatio
ii  libvte-common             1:0.20.1-1     Terminal emulator widget for GTK+

libvte9 recommends no packages.

libvte9 suggests no packages.

-- no debconf information

---------------------------------END---------------------------------

The attachment can be found at http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=vte-gbk;att=1;bug=525374

Plus, downgrading the Debian package to version 0.17.4-2+b1 (0.17.4 as upstream version) makes the symptom disappear.
Comment 3 Deng Xiyue 2009-04-29 03:03:07 UTC
It looks like that the font priority messed up, as '━' character is picked from a wide character fonts that takes a 2-narrow-character space, which leads to the mess up.  It also seems that the font I choose from profile settings - DejaVu Sans Mono - is not picked, but the other non-mono variant.  HTH.
Comment 4 Deng Xiyue 2009-05-07 14:54:06 UTC
Created attachment 134199 [details]
normal display

The normal display of aptitude.
Comment 5 Deng Xiyue 2009-05-07 14:58:32 UTC
Created attachment 134200 [details]
garbled display

This is the garbled display.

Please note that the fonts are different in garbled.png too, so it looks like the font preference is not evaluated in screen.  HTH.
Comment 6 Deng Xiyue 2009-06-29 01:54:27 UTC
It looks like the symptom is related to the problem reported in bug#435000.  Maybe the pangocairo backend doesn't pick the correct fonts as expected.
Comment 7 Behdad Esfahbod 2009-06-29 02:14:43 UTC
pangocairo backend is irrelevant AFAIU.  Are you running under CJK locale?
Comment 8 Deng Xiyue 2009-06-29 03:22:07 UTC
Yes, I'm under zh_CN.UTF-8.  I'll check whether it works in en_US.UTF-8 later today.  But it used to work smoothly under zh_CN.UTF-8 FTR.
Comment 9 Deng Xiyue 2009-06-29 14:18:24 UTC
No luck under en_US.UTF-8 either, same problem :(
Comment 10 Deng Xiyue 2009-07-16 15:01:34 UTC
After another try, it indeed doesn't happen under en_US.UTF-8: the correct "-" is chosen and display is no longer garbled.  Maybe then it is caused by the default font chosen under different locale?  If so, does this problem lie in pango or the font?
Comment 11 Behdad Esfahbod 2009-07-16 15:22:20 UTC
That character is U+2501 BOX DRAWINGS HEAVY HORIZONTAL, which has ambiguous width in Unicode and assumes double width under CJK locales.  I don't think using that character is justified.  Not sure though.
Comment 12 Deng Xiyue 2009-07-16 15:51:32 UTC
(In reply to comment #11)
> That character is U+2501 BOX DRAWINGS HEAVY HORIZONTAL, which has ambiguous
> width in Unicode and assumes double width under CJK locales.  I don't think
> using that character is justified.  Not sure though.
> 

Thanks for the explanation.  AIUI this bug is not related to vte any more, or at least not where the real cause resides.  Any idea where it belongs?
Comment 13 Behdad Esfahbod 2009-07-16 15:58:27 UTC
Please bring it up with the application causing it.  It may be an issue in slang or ncurses.  Not sure.