On Wed, Apr 25, 2007 at 05:50:15PM +0200, Eugene B. Berdnikov wrote: > Package: xterm > Version: 225-1 > Severity: normal > > > Xterm-225-1, LANG=ru_RU.KOI8-R (cyrillic). > > Cyrillic characters are substituted by hashes (#) on copy-and-paste. > Xterm 222-1etch2 works fine with cyrillic on the same system.
This seems to be the simplest fix:
diff -u -r1.272 button.c
--- button.c 2007/03/19 23:42:48 1.272
+++ button.c 2007/04/26 22:56:56
@@ -1611,7 +1611,8 @@
GettingSelection(dpy, *type, line, *length);
#if OPT_WIDE_CHARS
- if (*type == XA_UTF8_STRING(dpy)) {
+ if (*type == XA_UTF8_STRING(dpy) &&
+ !(screen->wide_chars || screen->c1_printable)) {
rc = Xutf8TextPropertyToTextList(dpy, &text_prop,
&text_list, &text_list_count);
if (text_list != NULL && text_list_count != 0) {
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
pgpD6fOGRg03D.pgp
Description: PGP signature

