diff --git a/winsup/cygwin/fhandler/proc.cc b/winsup/cygwin/fhandler/proc.cc index 74e5d9501..bb32d6498 100644 --- a/winsup/cygwin/fhandler/proc.cc +++ b/winsup/cygwin/fhandler/proc.cc @@ -2214,7 +2214,7 @@ format_proc_locale_proc (LPWSTR win_locale, DWORD info, LPARAM param) else if (!wcscmp (iso15924, L"Cyrl;")) stpcpy (modifier, "@cyrillic"); else if (!wcscmp (iso15924, L"Deva;")) - stpcpy (modifier, "@devanagar"); + stpcpy (modifier, "@devanagari"); else if (!wcscmp (iso15924, L"Adlm;")) stpcpy (modifier, "@adlam"); else diff --git a/winsup/cygwin/linux-locale-helpers/fetch-lc-def-codesets-from-linux b/winsup/cygwin/linux-locale-helpers/fetch-lc-def-codesets-from-linux index 1a8afede8..2a6f6cca2 100755 --- a/winsup/cygwin/linux-locale-helpers/fetch-lc-def-codesets-from-linux +++ b/winsup/cygwin/linux-locale-helpers/fetch-lc-def-codesets-from-linux @@ -14,7 +14,7 @@ awk '/^locale:/{ if ( index ($2, "_") == 0 ) next # No aliases if ( index ($2, ".") > 0 ) next # No explicit codesets - locale=$2; + locale = gensub (/devanagar.*/, "devanagari", 1, $2); } /codeset/ { if ( length (locale) == 0 ) next diff --git a/winsup/cygwin/local_includes/lc_def_codesets.h b/winsup/cygwin/local_includes/lc_def_codesets.h index 9c7230391..db7d7f2fb 100644 --- a/winsup/cygwin/local_includes/lc_def_codesets.h +++ b/winsup/cygwin/local_includes/lc_def_codesets.h @@ -1,5 +1,5 @@ /* This struct of default codesets has been generated by fetching - locale data from a Linux system using glibc-2.36-9.fc37.x86_64 on 2023-02-25 */ + locale data from a Linux system using glibc-2.36-9.fc37.x86_64 on 2023-02-26 */ struct default_codeset_t { const char *locale; @@ -193,7 +193,7 @@ struct default_codeset_t { "ko_KR", "EUC-KR" }, { "kok_IN", "UTF-8" }, { "ks_IN", "UTF-8" }, - { "ks_IN@devanagar", "UTF-8" }, + { "ks_IN@devanagari", "UTF-8" }, { "ku_TR", "ISO-8859-9" }, { "kw_GB", "ISO-8859-1" }, { "ky_KG", "UTF-8" }, @@ -269,7 +269,7 @@ struct default_codeset_t { "sat_IN", "UTF-8" }, { "sc_IT", "UTF-8" }, { "sd_IN", "UTF-8" }, - { "sd_IN@devanagar", "UTF-8" }, + { "sd_IN@devanagari", "UTF-8" }, { "se_NO", "UTF-8" }, { "sgs_LT", "UTF-8" }, { "shn_MM", "UTF-8" }, diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc index 8257c23b2..dd0fc8dc5 100644 --- a/winsup/cygwin/nlsfuncs.cc +++ b/winsup/cygwin/nlsfuncs.cc @@ -126,7 +126,7 @@ __get_rfc5646_from_locale (const char *name, wchar_t *win_locale) idx = 0; else if (!strcmp (modifier, "cyrillic")) idx = 1; - else if (!strcmp (modifier, "devanagar")) + else if (!strcmp (modifier, "devanagari")) idx = 2; else if (!strcmp (modifier, "adlam")) idx = 3;