Cygwin: /proc/locales: fix "sr" locales
The sr_XY locales are supposed to default to cyrillic, but the code
always attached a @cyrillic, same reason as in the previous commit.
Special case "sr" further to workaround that issue.
Fixes: c42b98bdc6
("Cygwin: introduce /proc/codesets and /proc/locales")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
9296f134fb
commit
676796498d
|
@ -2178,8 +2178,12 @@ format_proc_locale_proc (LPWSTR win_locale, DWORD info, LPARAM param)
|
|||
}
|
||||
/* Serbian: Windows default is Latin, Linux default is Cyrillic.
|
||||
We want the Linux default and attach @latin otherwise */
|
||||
else if (!wcscmp (iso639, L"sr") && !wcscmp (iso15924, L"Latn;"))
|
||||
stpcpy (modifier, "@latin");
|
||||
else if (!wcscmp (iso639, L"sr"))
|
||||
{
|
||||
snprintf (posix_loc, sizeof posix_loc, "sr_%.27ls", iso3166);
|
||||
if (!wcscmp (iso15924, L"Latn;"))
|
||||
stpcpy (modifier, "@latin");
|
||||
}
|
||||
/* Tamazight: no modifier, iso639 is "ber" on Linux.
|
||||
"zgh-Tfng-MA" is equivalent to "ber_MA". */
|
||||
else if (!wcscmp (iso639, L"zgh"))
|
||||
|
|
Loading…
Reference in New Issue