[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#395141: konsole: treats some Japanese FULLWIDTH chars as HALFWIDTH



Package: konsole
Version: 4:3.5.5a-2-cjk-wcwidth1
Severity: important
Tags: l10n


Some of Japanese FULLWIDTH symbol chars are treated as HALFWIDTH.

Here's an example utf-8 file.
http://mars.shehas.net/~tmatsuo/bts/symbols.txt

These chars are shown HALFWIDTH in uxterm without an option.
http://mars.shehas.net/~tmatsuo/bts/uxterm.png

And uxterm has an option '-cjk_width'. When this option is set, uxterm
treats these chars as FULLWIDTH.
http://mars.shehas.net/~tmatsuo/bts/uxterm-cjk_width.png

On the other hand, konsole treats these chars as HALFWIDTH.
http://mars.shehas.net/~tmatsuo/bts/konsole.png

Then I press Ctrl-l to clear the terminal, there are some garbages
left. So I think that konsole treats these chars as HALFWIDTH.
http://mars.shehas.net/~tmatsuo/bts/konsole-after-ctrl-l.png

Additionally, Many Japanese terminal application treats them as
FULLWIDTH by historical reasons. So screen is broken on such
applications.

This problem are discussed in KDE bug tracker, and there's a patch to
solve this problem.
http://bugs.kde.org/show_bug.cgi?id=41744
http://bugs.kde.org/attachment.cgi?id=5646&action=view

I applied the patch against the newest version of konsole, build,
install it and set "KONSOLE_WCWIDTH_CJK" environment variable. Thus
konsole treats these chars as FULLWIDTH.
http://mars.shehas.net/~tmatsuo/bts/konsole-cjk_width.png

I think this patch affects only people who set "KONSOLE_WCWIDTH_CJK"
environment variable. So, can you apply this patch? This patch makes
many Japanese konsole users happy.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-suspend2-2.2.8
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)

Versions of packages konsole depends on:
ii  kdelibs4c2a            4:3.5.5a.dfsg.1-1 core libraries and binaries for al
ii  libc6                  2.3.6.ds1-7       GNU C Library: Shared libraries
ii  libgcc1                1:4.1.1-17        GCC support library
ii  libstdc++6             4.1.1-17          The GNU Standard C++ Library v3
ii  libxrender1            1:0.9.1-3         X Rendering Extension client libra
ii  libxtst6               1:1.0.1-5         X11 Testing -- Resource extension 

konsole recommends no packages.

-- no debconf information



Reply to: