1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00

(w32_to_x_font): Setup members src_multibyte and

dst_multibyte of coding.
(x_to_w32_font): Likewise.
This commit is contained in:
Kenichi Handa 2000-05-20 00:06:41 +00:00
parent b34cf36ca8
commit aab5ac4409

View File

@ -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;