locked
GetThreadLocale and GetACP

    Question

  • Hi, are there equivalent methods to getting this information in Metro?  I need to "fix"

        UErrorCode status = U_ZERO_ERROR;
        LCID id = GetThreadLocale();
        const char* locID = uprv_convertToPosix(id, &status);
    
        if (U_FAILURE(status)) {
            locID = "en_US";
        }
        return locID;
     

    and

        static char codepage[64];
        sprintf(codepage, "windows-%d", GetACP());
        return codepage;

     

    Thursday, June 28, 2012 12:20 AM

Answers