[systemd-bugs] [Bug 54062] journalctl --setup-keys prints unreadable QR code in wide CJK mode
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Sep 12 05:01:14 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=54062
--- Comment #2 from Christian Persch (GNOME) <chpe at gnome.org> 2012-09-12 12:01:14 UTC ---
So the problem is actually more complex than I first thought:
* LANG=zh_CN.UTF-8 => works fine
* LANG=zh_CN.UTF-8 VTE_CJK_WIDTH=wide => fails
* LANG=zh_TW.BIG5 (or zh_CN.GBK, zh_CN.EUCCN etc) => fails dramatically
For the problem in the 3rd case, you can use the ISO 2022 sequence ESC %G to
switch to UTF-8 temporarily before starting the QR code, and then afterwards
use ESC %@ to switch back. With that, the QR code shows up fine. This works in
vte but not in urxvt, xterm or konsole (but doesn't make it any worse either).
Now for the 2nd case, this doesn't work because of the way VTE_CJK_WIDTH=wide
works; this may be a vte bug, not sure.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the systemd-bugs
mailing list