Changeset 5411


Ignore:
Timestamp:
Mar 31, 2001, 12:39:01 PM (24 years ago)
Author:
sandervl
Message:

codepage workaround (default = 0 isntead of 1252)

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.61 2001-03-28 16:21:40 sandervl Exp $ */
     1/* $Id: KERNEL32.CPP,v 1.62 2001-03-31 10:39:01 sandervl Exp $ */
    22
    33/*
     
    174174  dprintf(("KERNEL32:  GetOEMCP\n"));
    175175  return(O32_GetOEMCP());
    176 }
    177 //******************************************************************************
    178 //******************************************************************************
    179 ODINFUNCTION0(UINT, GetACP)
    180 {
    181   return(O32_GetACP());
    182176}
    183177//******************************************************************************
  • TabularUnified trunk/src/kernel32/codepage.cpp

    r5023 r5411  
    1 /* $Id: codepage.cpp,v 1.7 2001-01-24 20:33:37 sandervl Exp $
     1/* $Id: codepage.cpp,v 1.8 2001-03-31 10:39:01 sandervl Exp $
    22**
    33** Module   :CODEPAGE.CPP
     
    2424static UconvObject WindowsUconv = NULL;
    2525
     26static ULONG windowCodePage = -1;
     27static ULONG displayCodePage = -1;
     28
    2629ULONG GetDisplayCodepage()
    2730{
    28  static ULONG codepage = -1;
    29 
    30     if(codepage == -1) {
     31    if(displayCodePage == -1) {
    3132        //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);
    3335    }
    34     return codepage;
     36    return displayCodePage;
    3537}
    3638
    3739ULONG GetWindowsCodepage()
    3840{
    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}
    4048
    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;
     49UINT WIN32API GetACP()
     50{
     51    UINT codepage = GetDisplayCodepage();
     52    dprintf(("GetACP -> %d", codepage));
     53
     54    return(codepage);
    4655}
    4756
Note: See TracChangeset for help on using the changeset viewer.