Changeset 149 for trunk


Ignore:
Timestamp:
Sep 5, 2010, 9:16:54 PM (15 years ago)
Author:
dmik
Message:

jdk: Use DosQueryCp() to set the file.encoding value on OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/windows/native/java/lang/java_props_md.c

    r148 r149  
    984984                sprops.country = ctry;
    985985                sprops.variant = variant;
     986#ifdef __WIN32OS2__
     987                {
     988                    static char encoding[16];
     989                    os2_ULONG cp[3], len;
     990                    DosQueryCp(sizeof(cp), &cp, &len);
     991                    sprintf(encoding, "Cp%lu", cp[0]);
     992                    sprops.encoding =  encoding;
     993                }
     994#else
    986995                sprops.encoding = getEncodingInternal(index);
     996#endif
    987997            }
    988998            index = getLocaleEntryIndex(sysLangID);
Note: See TracChangeset for help on using the changeset viewer.