Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4a757e2d
Commit
4a757e2d
authored
Apr 01, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Recognize more script names in Unix locales.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4237cefb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
env.c
dlls/ntdll/unix/env.c
+19
-3
No files found.
dlls/ntdll/unix/env.c
View file @
4a757e2d
...
...
@@ -1019,6 +1019,7 @@ static WCHAR **build_wargv( const WCHAR *image )
static
BOOL
unix_to_win_locale
(
const
char
*
unix_name
,
char
*
win_name
)
{
static
const
char
sep
[]
=
"_.@"
;
const
char
*
extra
=
NULL
;
char
buffer
[
LOCALE_NAME_MAX_LENGTH
];
char
*
p
,
*
country
=
NULL
,
*
modifier
=
NULL
;
...
...
@@ -1062,9 +1063,23 @@ static BOOL unix_to_win_locale( const char *unix_name, char *win_name )
strcpy
(
win_name
,
buffer
);
if
(
modifier
)
{
if
(
!
strcmp
(
modifier
,
"latin"
))
strcat
(
win_name
,
"-Latn"
);
else
if
(
!
strcmp
(
modifier
,
"euro"
))
{}
/* ignore */
else
return
FALSE
;
if
(
!
strcmp
(
modifier
,
"arabic"
))
strcat
(
win_name
,
"-Arab"
);
else
if
(
!
strcmp
(
modifier
,
"chakma"
))
strcat
(
win_name
,
"-Cakm"
);
else
if
(
!
strcmp
(
modifier
,
"cherokee"
))
strcat
(
win_name
,
"-Cher"
);
else
if
(
!
strcmp
(
modifier
,
"cyrillic"
))
strcat
(
win_name
,
"-Cyrl"
);
else
if
(
!
strcmp
(
modifier
,
"devanagari"
))
strcat
(
win_name
,
"-Deva"
);
else
if
(
!
strcmp
(
modifier
,
"gurmukhi"
))
strcat
(
win_name
,
"-Guru"
);
else
if
(
!
strcmp
(
modifier
,
"javanese"
))
strcat
(
win_name
,
"-Java"
);
else
if
(
!
strcmp
(
modifier
,
"latin"
))
strcat
(
win_name
,
"-Latn"
);
else
if
(
!
strcmp
(
modifier
,
"mongolian"
))
strcat
(
win_name
,
"-Mong"
);
else
if
(
!
strcmp
(
modifier
,
"syriac"
))
strcat
(
win_name
,
"-Syrc"
);
else
if
(
!
strcmp
(
modifier
,
"tifinagh"
))
strcat
(
win_name
,
"-Tfng"
);
else
if
(
!
strcmp
(
modifier
,
"tibetan"
))
strcat
(
win_name
,
"-Tibt"
);
else
if
(
!
strcmp
(
modifier
,
"vai"
))
strcat
(
win_name
,
"-Vaii"
);
else
if
(
!
strcmp
(
modifier
,
"yi"
))
strcat
(
win_name
,
"-Yiii"
);
else
if
(
!
strcmp
(
modifier
,
"saaho"
))
strcpy
(
win_name
,
"ssy"
);
else
if
(
!
strcmp
(
modifier
,
"valencia"
))
extra
=
"-valencia"
;
/* ignore unknown modifiers */
}
if
(
country
)
{
...
...
@@ -1072,6 +1087,7 @@ static BOOL unix_to_win_locale( const char *unix_name, char *win_name )
*
p
++
=
'-'
;
strcpy
(
p
,
country
);
}
if
(
extra
)
strcat
(
win_name
,
extra
);
return
TRUE
;
}
...
...
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