summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2000-05-20 00:06:41 +0000
committerKenichi Handa <handa@m17n.org>2000-05-20 00:06:41 +0000
commitaab5ac4409ffabc544c0719db45c09e010dc264a (patch)
treeba067ad14391f42b72fcf4a54acc8b17c3a0ddb0
parentb34cf36ca8477f9e9a852e67737d4b374c154022 (diff)
(w32_to_x_font): Setup members src_multibyte and
dst_multibyte of coding. (x_to_w32_font): Likewise.
-rw-r--r--src/w32fns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 1c5aacd7ae0..3765124694e 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -5736,6 +5736,8 @@ w32_to_x_font (lplogfont, lpxstr, len)
setup_coding_system (Fcheck_coding_system (Vw32_system_coding_system),
&coding);
+ coding.src_multibyte = 0;
+ coding.dst_multibyte = 1;
coding.mode |= CODING_MODE_LAST_BLOCK;
bufsz = decoding_buffer_size (&coding, LF_FACESIZE);
@@ -5851,6 +5853,8 @@ x_to_w32_font (lpxstr, lplogfont)
setup_coding_system
(Fcheck_coding_system (Vw32_system_coding_system), &coding);
+ coding.src_multibyte = 1;
+ coding.dst_multibyte = 1;
bufsize = encoding_buffer_size (&coding, strlen (name));
buf = (unsigned char *) alloca (bufsize);
coding.mode |= CODING_MODE_LAST_BLOCK;