changeset 1676:007bced14910

Explicitly set codepage 1208 for GPI rendering on OS/2... It clearly is not inherited from the PM codepage automatically.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 27 Apr 2012 08:25:58 +0000
parents ca5123dc5819
children 60f8ae42a0be
files os2/dw.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Fri Apr 27 02:47:44 2012 +0000
+++ b/os2/dw.c	Fri Apr 27 08:25:58 2012 +0000
@@ -4593,7 +4593,9 @@
             strcpy(buf, currfont);
             strcpy(fd.fAttrs.szFacename, currfont);
         }
-    }
+	}
+    fd.fAttrs.usCodePage = 1208;
+    fd.fAttrs.usRecordLength = sizeof(FATTRS);
 
     /* Fill in the font dialog struct */
     fd.cbSize = sizeof(fd);
@@ -9835,6 +9837,7 @@
 
    fat.usRecordLength  = sizeof(FATTRS);
    fat.lMatch          = fm.lMatch;
+   fat.usCodePage      = 1208;
    strcpy(fat.szFacename, fm.szFacename);
 
    GpiCreateLogFont(hpsDst, 0, 1L, &fat);