summaryrefslogtreecommitdiffstats
path: root/x11-terms/xterm/files/xterm-ds-copy-243.patch
blob: ca489b6377d73974be386952c7dcb7e11ca026a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -dPNur xterm-243/button.c xterm-243-copy/button.c
--- xterm-243/button.c	2009-03-27 01:00:56.000000000 +0100
+++ xterm-243-copy/button.c	2009-06-14 05:41:44.000000000 +0200
@@ -3475,28 +3475,28 @@
 	}
     }
 #if OPT_WIDE_CHARS
-    else if (screen->wide_chars && *target == XA_STRING) {
+    else if (screen->utf8_mode && *target == XA_STRING) {
 	result =
 	    _ConvertSelectionHelper(w,
 				    type, value, length, format,
 				    Xutf8TextListToTextProperty,
 				    XStringStyle);
 	TRACE(("...Xutf8TextListToTextProperty:%d\n", result));
-    } else if (screen->wide_chars && *target == XA_UTF8_STRING(dpy)) {
+    } else if (screen->utf8_mode && *target == XA_UTF8_STRING(dpy)) {
 	result =
 	    _ConvertSelectionHelper(w,
 				    type, value, length, format,
 				    Xutf8TextListToTextProperty,
 				    XUTF8StringStyle);
 	TRACE(("...Xutf8TextListToTextProperty:%d\n", result));
-    } else if (screen->wide_chars && *target == XA_TEXT(dpy)) {
+    } else if (screen->utf8_mode && *target == XA_TEXT(dpy)) {
 	result =
 	    _ConvertSelectionHelper(w,
 				    type, value, length, format,
 				    Xutf8TextListToTextProperty,
 				    XStdICCTextStyle);
 	TRACE(("...Xutf8TextListToTextProperty:%d\n", result));
-    } else if (screen->wide_chars && *target == XA_COMPOUND_TEXT(dpy)) {
+    } else if (screen->utf8_mode && *target == XA_COMPOUND_TEXT(dpy)) {
 	result =
 	    _ConvertSelectionHelper(w,
 				    type, value, length, format,