# HG changeset patch # User Andrew Innes # Date 1003340907 0 # Node ID 1a8e549e2f400dfd7c53c753691c96eee0e5bda6 # Parent f6ecf530f0a35cfa47f003ad7ed9c6511da72c7a (w32_encode_char): Get cached codepage from font_info, rather than working it out by calling w32_codepage_for_font for every glyph. diff -r f6ecf530f0a3 -r 1a8e549e2f40 src/w32term.c --- a/src/w32term.c Wed Oct 17 17:47:56 2001 +0000 +++ b/src/w32term.c Wed Oct 17 17:48:27 2001 +0000 @@ -1438,7 +1438,7 @@ *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. */