# HG changeset patch # User Andrew Innes # Date 1003422175 0 # Node ID 392c2fe9edd7e37b3b499b7b64bce8be45ae45db # Parent d081f5779c982ac40f142f9ec5d4aa6f47a8f17a (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable optimization. The fontp->encoding array was not being initialized correctly when compiled with optimizations by MSVC. diff -r d081f5779c98 -r 392c2fe9edd7 src/fontset.c --- a/src/fontset.c Thu Oct 18 10:06:01 2001 +0000 +++ b/src/fontset.c Thu Oct 18 16:22:55 2001 +0000 @@ -569,6 +569,10 @@ } +#if defined(WINDOWSNT) && defined (_MSC_VER) +#pragma optimize("", off) +#endif + /* Load a font named FONTNAME to display character C on frame F. Return a pointer to the struct font_info of the loaded font. If loading fails, return NULL. If FACE is non-zero and a fontset is @@ -694,6 +698,10 @@ return fontp; } +#if defined(WINDOWSNT) && defined (_MSC_VER) +#pragma optimize("", on) +#endif + /* Cache data used by fontset_pattern_regexp. The car part is a pattern string containing at least one wild card, the cdr part is