GNOME Bugzilla – Bug 572230
text mode program rendering is strange in cjk locale.
Last modified: 2010-03-02 19:31:14 UTC
Please describe the problem: text mode program rendering is strange in cjk locale. Steps to reproduce: 1. $LANG=ja_JP.UTF-8 vte 2. $ mc or setup in vte 3. Actual results: Expected results: Does this happen every time? yes, always. Other information: vte-0.19.4-3.fc11
Created attachment 128939 [details] setup in vte (locale ja_JP.UTF-8)
This issue still happens in vte-0.20.5. --- "$ LANG=en_US.UTF-8 vte" has good rendering. slang-2.2.0-1.fc12.x86_64 ncurses-5.7-3.20090207.fc12.x86_64
Created attachment 139955 [details] setup in $LANG=en_US.UTF-8 vte.
Humm, I'm beng more convinved that we shouldn't wide-char the ambiguous chars under any UTF-8 locale by default, and let VTE_CJK_WIDTH choose it. I'll give it a shot.
Humm, weird, setup under ja_JP.UTF-8 works fine here. What version of vte is that? Can you test with master?
Humm, my bad.
Ok, turned of ambiguous-width guessing based on locale if charset is UTF-8. The Unicode specs is clear about that case, so we follow it. commit 3eaca3e36fb806608c961ef594baf99cecf9fdfa Author: Behdad Esfahbod <behdad@behdad.org> Date: Wed Aug 5 21:26:05 2009 -0400 Bug 572230 – text mode program rendering is strange in cjk locale. Under UTF-8 encoding, always use width=1 for ambiguous-width chars, only allow override using VTE_CJK_WIDTH=1. Preivously we were using width=2 for CJKS locales. That's against Unicode recommendations, and breaks a bunch of programs.
*** Bug 566670 has been marked as a duplicate of this bug. ***