jdk/src/windows/native/sun/util/locale/provider/HostLocaleProviderAdapter_md.c
changeset 16481 8e30386cc014
parent 14028 5f3d5ae5f1ea
child 17169 5e5039c3181d
equal deleted inserted replaced
16480:fcad3b6ec812 16481:8e30386cc014
   609     }
   609     }
   610 }
   610 }
   611 
   611 
   612 int getLocaleInfoWrapper(const jchar *langtag, LCTYPE type, LPWSTR data, int buflen) {
   612 int getLocaleInfoWrapper(const jchar *langtag, LCTYPE type, LPWSTR data, int buflen) {
   613     if (pGetLocaleInfoEx) {
   613     if (pGetLocaleInfoEx) {
   614         return pGetLocaleInfoEx((LPWSTR)langtag, type, data, buflen);
   614         if (wcscmp(L"und", (LPWSTR)langtag) == 0) {
       
   615             // defaults to "en"
       
   616             return pGetLocaleInfoEx(L"en", type, data, buflen);
       
   617         } else {
       
   618             return pGetLocaleInfoEx((LPWSTR)langtag, type, data, buflen);
       
   619         }
   615     } else {
   620     } else {
   616         // If we ever wanted to support WinXP, we will need extra module from
   621         // If we ever wanted to support WinXP, we will need extra module from
   617         // MS...
   622         // MS...
   618         // return GetLocaleInfo(DownlevelLocaleNameToLCID(langtag, 0), type, data, buflen);
   623         // return GetLocaleInfo(DownlevelLocaleNameToLCID(langtag, 0), type, data, buflen);
   619         return 0;
   624         return 0;
   620     }
   625     }
   621 }
   626 }
   622 
   627 
   623 int getCalendarInfoWrapper(const jchar *langtag, CALID id, LPCWSTR reserved, CALTYPE type, LPWSTR data, int buflen, LPDWORD val) {
   628 int getCalendarInfoWrapper(const jchar *langtag, CALID id, LPCWSTR reserved, CALTYPE type, LPWSTR data, int buflen, LPDWORD val) {
   624     if (pGetCalendarInfoEx) {
   629     if (pGetCalendarInfoEx) {
   625         return pGetCalendarInfoEx((LPWSTR)langtag, id, reserved, type, data, buflen, val);
   630         if (wcscmp(L"und", (LPWSTR)langtag) == 0) {
       
   631             // defaults to "en"
       
   632             return pGetCalendarInfoEx(L"en", id, reserved, type, data, buflen, val);
       
   633         } else {
       
   634             return pGetCalendarInfoEx((LPWSTR)langtag, id, reserved, type, data, buflen, val);
       
   635         }
   626     } else {
   636     } else {
   627         // If we ever wanted to support WinXP, we will need extra module from
   637         // If we ever wanted to support WinXP, we will need extra module from
   628         // MS...
   638         // MS...
   629         // return GetCalendarInfo(DownlevelLocaleNameToLCID(langtag, 0), ...);
   639         // return GetCalendarInfo(DownlevelLocaleNameToLCID(langtag, 0), ...);
   630         return 0;
   640         return 0;