From: Andrew Innes Date: Thu, 18 Oct 2001 12:39:30 +0000 (+0000) Subject: (w32_encode_char): Get cached codepage from font_info, X-Git-Tag: emacs-21.1~29 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e11cc8785492a87d5fd2e48e353a9099f3f30ac;p=emacs.git (w32_encode_char): Get cached codepage from font_info, rather than working it out by calling w32_codepage_for_font for every glyph. --- diff --git a/src/w32term.c b/src/w32term.c index e8af4c53e3e..94dee64ad1d 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -1444,7 +1444,7 @@ w32_encode_char (c, char2b, font_info, two_byte_p) *char2b = BUILD_WCHAR_T (sjis1, sjis2); } } - codepage = w32_codepage_for_font (font_info->name); + codepage = font_info->codepage; /* If charset is not ASCII or Latin-1, may need to move it into Unicode space. */