Changeset 5411
- Timestamp:
- Mar 31, 2001, 12:39:01 PM (24 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/kernel32/KERNEL32.CPP ¶
r5393 r5411 1 /* $Id: KERNEL32.CPP,v 1.6 1 2001-03-28 16:21:40sandervl Exp $ */1 /* $Id: KERNEL32.CPP,v 1.62 2001-03-31 10:39:01 sandervl Exp $ */ 2 2 3 3 /* … … 174 174 dprintf(("KERNEL32: GetOEMCP\n")); 175 175 return(O32_GetOEMCP()); 176 }177 //******************************************************************************178 //******************************************************************************179 ODINFUNCTION0(UINT, GetACP)180 {181 return(O32_GetACP());182 176 } 183 177 //****************************************************************************** -
TabularUnified trunk/src/kernel32/codepage.cpp ¶
r5023 r5411 1 /* $Id: codepage.cpp,v 1. 7 2001-01-24 20:33:37sandervl Exp $1 /* $Id: codepage.cpp,v 1.8 2001-03-31 10:39:01 sandervl Exp $ 2 2 ** 3 3 ** Module :CODEPAGE.CPP … … 24 24 static UconvObject WindowsUconv = NULL; 25 25 26 static ULONG windowCodePage = -1; 27 static ULONG displayCodePage = -1; 28 26 29 ULONG GetDisplayCodepage() 27 30 { 28 static ULONG codepage = -1; 29 30 if(codepage == -1) { 31 if(displayCodePage == -1) { 31 32 //default codepage is 1252 (same as default Windows codepage) 32 codepage = PROFILE_GetOdinIniInt(CODEPAGE_SECTION, "DISPLAY", 1252); 33 // displayCodePage = PROFILE_GetOdinIniInt(CODEPAGE_SECTION, "DISPLAY", 1252); 34 displayCodePage = PROFILE_GetOdinIniInt(CODEPAGE_SECTION, "DISPLAY", 0); 33 35 } 34 return codepage;36 return displayCodePage; 35 37 } 36 38 37 39 ULONG GetWindowsCodepage() 38 40 { 39 static ULONG codepage = -1; 41 if(windowCodePage == -1) { 42 //default codepage is 1252 (same as default Windows codepage) 43 // windowCodePage = PROFILE_GetOdinIniInt(CODEPAGE_SECTION, "WINDOWS", 1252); 44 windowCodePage = PROFILE_GetOdinIniInt(CODEPAGE_SECTION, "WINDOWS", 0); 45 } 46 return windowCodePage; 47 } 40 48 41 if(codepage == -1) { 42 //default codepage is 1252 (same as default Windows codepage) 43 codepage = PROFILE_GetOdinIniInt(CODEPAGE_SECTION, "WINDOWS", 1252); 44 } 45 return codepage; 49 UINT WIN32API GetACP() 50 { 51 UINT codepage = GetDisplayCodepage(); 52 dprintf(("GetACP -> %d", codepage)); 53 54 return(codepage); 46 55 } 47 56
Note:
See TracChangeset
for help on using the changeset viewer.