]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_encode_char): Get cached codepage from font_info,
authorAndrew Innes <andrewi@gnu.org>
Thu, 18 Oct 2001 12:39:30 +0000 (12:39 +0000)
committerAndrew Innes <andrewi@gnu.org>
Thu, 18 Oct 2001 12:39:30 +0000 (12:39 +0000)
rather than working it out by calling w32_codepage_for_font for
every glyph.

src/w32term.c

index e8af4c53e3e96277c2c4514bd0135bc7ba24e6c7..94dee64ad1d4dc1f34ccdb10f4da87251c6eea7d 100644 (file)
@@ -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.  */