pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/45221: xterm utf-8 mode is (partially) a one-way trip
>Number: 45221
>Category: pkg
>Synopsis: xterm utf-8 mode is (partially) a one-way trip
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Aug 07 05:40:00 +0000 2011
>Originator: David A. Holland
>Release: NetBSD 5.99.49 (pkgsrc from 20110730)
>Organization:
>Environment:
System: NetBSD macaran 5.99.49 NetBSD 5.99.49 (MACARAN) #8: Mon Apr 11 19:54:18
EDT 2011 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:
xterm-259 from pkgsrc X has the following problem:
If you
- start it in non-utf-8 mode
- switch to utf-8 mode with the ctrl-rightmouse menu
- do some stuff
- switch back to normal mode with the ctrl-rightmouse menu
then only output handling and not input handling switches back away
from utf-8. That is, if you print characters 128-255 from programs,
they're displayed as the matching iso-latin-1 glyphs; but if you paste
characters 128-255 into the xterm they are converted to utf-8 on the
way in and programs read them as multibyte sequences. This conversion
is apparently enabled when utf-8 mode is switched on, but not disabled
again when it's switched off.
>How-To-Repeat:
prepare something suitable in your cut buffer, open a fresh xterm, and
paste into cat as follows:
% cat | hexdump -C
<correct glyph>
00000000 d8 0a |..|
00000002
switch on utf-8 mode:
% cat | hexdump -C
<correct glyph>
00000000 c3 98 0a |...|
00000003
switch off utf-8 mode:
% cat | hexdump -C
<wrong glyph>
00000000 c3 98 0a |...|
00000003
>Fix:
dunno, probably obvious if you know where to look, which I don't.
Home |
Main Index |
Thread Index |
Old Index