Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
17c353a3
Commit
17c353a3
authored
Mar 24, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement ConvertDefaultLocale() using the locale.nls data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0263494b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
38 deletions
+1
-38
locale.c
dlls/kernelbase/locale.c
+1
-38
No files found.
dlls/kernelbase/locale.c
View file @
17c353a3
...
...
@@ -3318,44 +3318,7 @@ INT WINAPI DECLSPEC_HOTPATCH CompareStringOrdinal( const WCHAR *str1, INT len1,
*/
LCID
WINAPI
DECLSPEC_HOTPATCH
ConvertDefaultLocale
(
LCID
lcid
)
{
switch
(
lcid
)
{
case
LOCALE_INVARIANT
:
return
lcid
;
/* keep as-is */
case
LOCALE_SYSTEM_DEFAULT
:
return
GetSystemDefaultLCID
();
case
LOCALE_USER_DEFAULT
:
case
LOCALE_NEUTRAL
:
return
GetUserDefaultLCID
();
case
MAKELANGID
(
LANG_CHINESE
,
SUBLANG_NEUTRAL
):
case
MAKELANGID
(
LANG_CHINESE
,
0x1e
):
return
MAKELANGID
(
LANG_CHINESE
,
SUBLANG_CHINESE_SIMPLIFIED
);
case
MAKELANGID
(
LANG_CHINESE
,
0x1f
):
return
MAKELANGID
(
LANG_CHINESE
,
SUBLANG_CHINESE_HONGKONG
);
case
LANG_SERBIAN_NEUTRAL
:
return
MAKELANGID
(
LANG_SERBIAN
,
SUBLANG_SERBIAN_SERBIA_LATIN
);
case
MAKELANGID
(
LANG_SPANISH
,
SUBLANG_NEUTRAL
):
return
MAKELANGID
(
LANG_SPANISH
,
SUBLANG_SPANISH_MODERN
);
case
MAKELANGID
(
LANG_IRISH
,
SUBLANG_NEUTRAL
):
return
MAKELANGID
(
LANG_IRISH
,
SUBLANG_IRISH_IRELAND
);
case
MAKELANGID
(
LANG_BENGALI
,
SUBLANG_NEUTRAL
):
return
MAKELANGID
(
LANG_BENGALI
,
SUBLANG_BENGALI_BANGLADESH
);
case
MAKELANGID
(
LANG_SINDHI
,
SUBLANG_NEUTRAL
):
return
MAKELANGID
(
LANG_SINDHI
,
SUBLANG_SINDHI_AFGHANISTAN
);
case
MAKELANGID
(
LANG_INUKTITUT
,
SUBLANG_NEUTRAL
):
return
MAKELANGID
(
LANG_INUKTITUT
,
SUBLANG_INUKTITUT_CANADA_LATIN
);
case
MAKELANGID
(
LANG_TAMAZIGHT
,
SUBLANG_NEUTRAL
):
return
MAKELANGID
(
LANG_TAMAZIGHT
,
SUBLANG_TAMAZIGHT_ALGERIA_LATIN
);
case
MAKELANGID
(
LANG_FULAH
,
SUBLANG_NEUTRAL
):
return
MAKELANGID
(
LANG_FULAH
,
SUBLANG_FULAH_SENEGAL
);
case
MAKELANGID
(
LANG_TIGRINYA
,
SUBLANG_NEUTRAL
):
return
MAKELANGID
(
LANG_TIGRINYA
,
SUBLANG_TIGRINYA_ERITREA
);
default:
/* Replace SUBLANG_NEUTRAL with SUBLANG_DEFAULT */
if
(
SUBLANGID
(
lcid
)
==
SUBLANG_NEUTRAL
&&
SORTIDFROMLCID
(
lcid
)
==
SORT_DEFAULT
)
lcid
=
MAKELANGID
(
PRIMARYLANGID
(
lcid
),
SUBLANG_DEFAULT
);
break
;
}
get_locale_by_id
(
&
lcid
,
0
);
return
lcid
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment