mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
Fixed a bug in wsetlocale()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user