From 6e11cc8785492a87d5fd2e48e353a9099f3f30ac Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Thu, 18 Oct 2001 12:39:30 +0000 Subject: [PATCH] (w32_encode_char): Get cached codepage from font_info, rather than working it out by calling w32_codepage_for_font for every glyph. --- src/w32term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.39.2