From aab5ac4409ffabc544c0719db45c09e010dc264a Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sat, 20 May 2000 00:06:41 +0000 Subject: [PATCH] (w32_to_x_font): Setup members src_multibyte and dst_multibyte of coding. (x_to_w32_font): Likewise. --- src/w32fns.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5