diff options
| author | Kenichi Handa | 2000-07-21 02:39:45 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-07-21 02:39:45 +0000 |
| commit | 11270583fe28b5af6b2c19862af597e8d676783d (patch) | |
| tree | 03e8518728e2fa1610db9cac268aa923b0a42c67 /src | |
| parent | d60660d6e9121bd2fc5184a5e9fea6a5d98dc39d (diff) | |
| download | emacs-11270583fe28b5af6b2c19862af597e8d676783d.tar.gz emacs-11270583fe28b5af6b2c19862af597e8d676783d.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/xfns.c | 16 | ||||
| -rw-r--r-- | src/xselect.c | 6 |
3 files changed, 25 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9cfe1c40e59..c3ca88eb9e7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2000-07-21 Kenichi Handa <handa@etl.go.jp> | ||
| 2 | |||
| 3 | * xfns.c (x_encode_text): New function. | ||
| 4 | (x_set_name): Use x_encode_text. | ||
| 5 | (x_set_title): Likewise. | ||
| 6 | |||
| 7 | * xselect.c (lisp_data_to_selection_data): Use x_encode_text. | ||
| 8 | |||
| 9 | * xterm.h (x_encode_text): Add prototype. | ||
| 10 | |||
| 1 | 2000-07-20 Dave Love <fx@gnu.org> | 11 | 2000-07-20 Dave Love <fx@gnu.org> |
| 2 | 12 | ||
| 3 | * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use | 13 | * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use |
diff --git a/src/xfns.c b/src/xfns.c index eb72cddfc65..4b8264aaa71 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2192,8 +2192,12 @@ x_set_name (f, name, explicit) | |||
| 2192 | { | 2192 | { |
| 2193 | XTextProperty text, icon; | 2193 | XTextProperty text, icon; |
| 2194 | int bytes, stringp; | 2194 | int bytes, stringp; |
| 2195 | Lisp_Object coding_system; | ||
| 2195 | 2196 | ||
| 2196 | text.value = x_encode_text (name, Qcompound_text, &bytes, &stringp); | 2197 | coding_system = Vlocale_coding_system; |
| 2198 | if (NILP (coding_system)) | ||
| 2199 | coding_system = Qcompound_text; | ||
| 2200 | text.value = x_encode_text (name, coding_system, &bytes, &stringp); | ||
| 2197 | text.encoding = (stringp ? XA_STRING | 2201 | text.encoding = (stringp ? XA_STRING |
| 2198 | : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT); | 2202 | : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT); |
| 2199 | text.format = 8; | 2203 | text.format = 8; |
| @@ -2205,7 +2209,7 @@ x_set_name (f, name, explicit) | |||
| 2205 | } | 2209 | } |
| 2206 | else | 2210 | else |
| 2207 | { | 2211 | { |
| 2208 | icon.value = x_encode_text (f->icon_name, Qcompound_text, | 2212 | icon.value = x_encode_text (f->icon_name, coding_system, |
| 2209 | &bytes, &stringp); | 2213 | &bytes, &stringp); |
| 2210 | icon.encoding = (stringp ? XA_STRING | 2214 | icon.encoding = (stringp ? XA_STRING |
| 2211 | : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT); | 2215 | : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT); |
| @@ -2295,8 +2299,12 @@ x_set_title (f, name, old_name) | |||
| 2295 | { | 2299 | { |
| 2296 | XTextProperty text, icon; | 2300 | XTextProperty text, icon; |
| 2297 | int bytes, stringp; | 2301 | int bytes, stringp; |
| 2302 | Lisp_Object coding_system; | ||
| 2298 | 2303 | ||
| 2299 | text.value = x_encode_text (name, Qcompound_text, &bytes, &stringp); | 2304 | coding_system = Vlocale_coding_system; |
| 2305 | if (NILP (coding_system)) | ||
| 2306 | coding_system = Qcompound_text; | ||
| 2307 | text.value = x_encode_text (name, coding_system, &bytes, &stringp); | ||
| 2300 | text.encoding = (stringp ? XA_STRING | 2308 | text.encoding = (stringp ? XA_STRING |
| 2301 | : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT); | 2309 | : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT); |
| 2302 | text.format = 8; | 2310 | text.format = 8; |
| @@ -2308,7 +2316,7 @@ x_set_title (f, name, old_name) | |||
| 2308 | } | 2316 | } |
| 2309 | else | 2317 | else |
| 2310 | { | 2318 | { |
| 2311 | icon.value = x_encode_text (f->icon_name, Qcompound_text, | 2319 | icon.value = x_encode_text (f->icon_name, coding_system, |
| 2312 | &bytes, &stringp); | 2320 | &bytes, &stringp); |
| 2313 | icon.encoding = (stringp ? XA_STRING | 2321 | icon.encoding = (stringp ? XA_STRING |
| 2314 | : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT); | 2322 | : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT); |
diff --git a/src/xselect.c b/src/xselect.c index dba8289ccda..ac260160781 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1648,17 +1648,17 @@ lisp_data_to_selection_data (display, obj, | |||
| 1648 | { | 1648 | { |
| 1649 | /* Since we are now handling multilingual text, we must consider | 1649 | /* Since we are now handling multilingual text, we must consider |
| 1650 | sending back compound text. */ | 1650 | sending back compound text. */ |
| 1651 | int latin1_p; | 1651 | int stringp; |
| 1652 | 1652 | ||
| 1653 | if (NILP (Vnext_selection_coding_system)) | 1653 | if (NILP (Vnext_selection_coding_system)) |
| 1654 | Vnext_selection_coding_system = Vselection_coding_system; | 1654 | Vnext_selection_coding_system = Vselection_coding_system; |
| 1655 | 1655 | ||
| 1656 | *format_ret = 8; | 1656 | *format_ret = 8; |
| 1657 | *data_ret = x_encode_text (obj, Vnext_selection_coding_system, | 1657 | *data_ret = x_encode_text (obj, Vnext_selection_coding_system, |
| 1658 | (int *) size_ret, &latin1_p); | 1658 | (int *) size_ret, &stringp); |
| 1659 | *nofree_ret = (*data_ret == XSTRING (obj)->data); | 1659 | *nofree_ret = (*data_ret == XSTRING (obj)->data); |
| 1660 | if (NILP (type)) | 1660 | if (NILP (type)) |
| 1661 | type = (latin1_p ? QSTRING : QCOMPOUND_TEXT); | 1661 | type = (stringp ? QSTRING : QCOMPOUND_TEXT); |
| 1662 | Vlast_coding_system_used = (*nofree_ret | 1662 | Vlast_coding_system_used = (*nofree_ret |
| 1663 | ? Qraw_text | 1663 | ? Qraw_text |
| 1664 | : Vnext_selection_coding_system); | 1664 | : Vnext_selection_coding_system); |