Commit 729eadda authored by Eli Zaretskii's avatar Eli Zaretskii

(encode_coding_string): Don't encode unibyte strings. (Bug#4047)

parent 8e22fa7e
2009-08-22 Eli Zaretskii <eliz@gnu.org>
* coding.h (encode_coding_string): Don't encode unibyte strings.
(Bug#4047)
2009-08-22 Michael Albinus <michael.albinus@gmx.de>
* config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
......
......@@ -738,9 +738,10 @@ extern void encode_coding_object P_ ((struct coding_system *,
SBYTES (string), Qt)
#define encode_coding_string(coding, string, nocopy) \
(STRING_MULTIBYTE(string) ? \
(encode_coding_object (coding, string, 0, 0, SCHARS (string), \
SBYTES (string), Qt), \
(coding)->dst_object)
(coding)->dst_object) : (string))
#define decode_coding_c_string(coding, src, bytes, dst_object) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment