mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fixed a bug in wsetlocale()
This commit is contained in:
parent
34fd8e0e00
commit
17567028da
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ wcstring wsetlocale(int category, const wchar_t *locale)
|
|||
{
|
||||
|
||||
char *lang = NULL;
|
||||
if (locale && wcscmp(locale,L"")){
|
||||
if (locale){
|
||||
lang = wcs2str( locale );
|
||||
}
|
||||
char * res = setlocale(category,lang);
|
||||
|
|
Loading…
Reference in a new issue