diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c index d62ae1d483f..b3cef2ddfcb 100644 --- a/dlls/msvcrt/locale.c +++ b/dlls/msvcrt/locale.c @@ -464,6 +464,19 @@ char* MSVCRT_setlocale(int category, const char* locale) return MSVCRT_current_lc_all; } +/********************************************************************* + * setlocale (MSVCRT.@) + */ +MSVCRT_wchar_t* MSVCRT__wsetlocale(int category, const MSVCRT_wchar_t* locale) +{ + static MSVCRT_wchar_t fake[] = { + 'E','n','g','l','i','s','h','_','U','n','i','t','e','d',' ', + 'S','t','a','t','e','s','.','1','2','5','2',0 }; + + FIXME("%d %s\n", category, debugstr_w(locale)); + + return fake; +} /********************************************************************* * _Getdays (MSVCRT.@) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 9f68417aa25..117014ee0e4 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -541,7 +541,7 @@ @ cdecl _write(long ptr long) @ cdecl _wrmdir(wstr) @ stub _wsearchenv #(wstr wstr ptr) -@ stub _wsetlocale #(long wstr) +@ cdecl _wsetlocale(long wstr) MSVCRT__wsetlocale @ varargs _wsopen (wstr long long) MSVCRT__wsopen @ stub _wspawnl #(long wstr wstr) varargs @ stub _wspawnle #(long wstr wstr) varargs