XTerm CJK punctuation width not correct.

Bug #1372425 reported by kaisu_tsuneyama on 2014-09-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xterm (Ubuntu)

Bug Description

I'm not fluent in English but I'll try my best to describe.

I'm using Xubuntu 14.04, and recently came upon this issue using text editors in xterm. Sometimes the the width of Chinese full-width comma ',' is not correctly displayed(shortened), resulting in charaters 'overlapping'.

See the 'overlapping' effect at:

See the shortened full width comma at:
Note that the first line shows 'shortened' full-width comma, second and third line show the normal full-width comma.

Step to reproduce in Xubuntu 14.04:

1. Make sure you have these packages installed:
     'xterm', 'nano', 'fonts-wqy-zenhei';

2. Create/modify ~/.Xresources with the following contents:

! ========= start of .Xresources ========= !
!mouse selecting to copy, ctrl-v to paste
XTerm*VT100.Translations: #override \
Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
<BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\

XTerm*faceName:Dejavu Sans Mono:pixelsize=12
XTerm*faceNameDoublesize:WenQuanYi Zen Hei Mono:pixelsize=13
! ========= end of .Xresources ========= !

3. Execute in bash: xrdb -merge ~/.Xresources

4. Copy the following string(not including quotation mark) into clipboard:

5. Start nano in xterm;

6. In nano, press Ctrl-v to paste.( Previously configured in ~/.Xresources )

7. Press left arrow key 1~3 times to see the effect.

Seems that only pasting those characters messes up the display, typing them in has no effect.

description: updated
description: updated
description: updated
Thomas Dickey (dickey-his) wrote :

Ubuntu 14.04 has xterm patch #297.
This bug was fixed in patch #298 - see

@Thomas Dickey (dickey-his)

Thanks! I also discovered this problem to be #297-specific. Have been using an old version to avoid it.

Changed in xterm (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers