aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2002-05-31 17:43:45 +0000
committerEli Zaretskii2002-05-31 17:43:45 +0000
commit43dc73f18fb590168face8211d9e434455e2df33 (patch)
tree9018cea240e33dda8cfc1ac34b260eb0b7eff0cd
parentf326600bb8c4e888ae3dea678c8324c3f5addea4 (diff)
downloademacs-43dc73f18fb590168face8211d9e434455e2df33.tar.gz
emacs-43dc73f18fb590168face8211d9e434455e2df33.zip
(x_encode_text): Return stringp non-NULL if coding_system
is Qcompound_text_with_extensions.
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xfns.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7f7c516c693..9be130c46f0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12002-05-31 Eli Zaretskii <eliz@is.elta.co.il> 12002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
2 2
3 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
4 is Qcompound_text_with_extensions.
5
6 * xselect.c (lisp_data_to_selection_data): Always set selection
7 type as string if x_encode_text returns streingp non-NULL.
8
3 * s/netbsd.h: Include /usr/pkg in the run time shared library path. 9 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
4 10
52002-05-30 Richard M. Stallman <rms@gnu.org> 112002-05-30 Richard M. Stallman <rms@gnu.org>
diff --git a/src/xfns.c b/src/xfns.c
index 1e2cd65863a..cd3dcdd54fd 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2387,6 +2387,7 @@ x_encode_text (string, coding_system, selectionp, text_bytes, stringp)
2387 int bufsize; 2387 int bufsize;
2388 unsigned char *buf; 2388 unsigned char *buf;
2389 struct coding_system coding; 2389 struct coding_system coding;
2390 extern Lisp_Object Qcompound_text_with_extensions;
2390 2391
2391 charset_info = find_charset_in_text (str, chars, bytes, NULL, Qnil); 2392 charset_info = find_charset_in_text (str, chars, bytes, NULL, Qnil);
2392 if (charset_info == 0) 2393 if (charset_info == 0)
@@ -2418,7 +2419,9 @@ x_encode_text (string, coding_system, selectionp, text_bytes, stringp)
2418 buf = (unsigned char *) xmalloc (bufsize); 2419 buf = (unsigned char *) xmalloc (bufsize);
2419 encode_coding (&coding, str, buf, bytes, bufsize); 2420 encode_coding (&coding, str, buf, bytes, bufsize);
2420 *text_bytes = coding.produced; 2421 *text_bytes = coding.produced;
2421 *stringp = (charset_info == 1 || !EQ (coding_system, Qcompound_text)); 2422 *stringp = (charset_info == 1
2423 || (!EQ (coding_system, Qcompound_text)
2424 && !EQ (coding_system, Qcompound_text_with_extensions)));
2422 return buf; 2425 return buf;
2423} 2426}
2424 2427