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
667dad23
Commit
667dad23
authored
Feb 08, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Separate modifier from charset before detecting the charset codepage.
parent
01af8501
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
locale.c
dlls/kernel32/locale.c
+5
-1
No files found.
dlls/kernel32/locale.c
View file @
667dad23
...
@@ -351,6 +351,8 @@ static void parse_locale_name( const WCHAR *str, struct locale_name *name )
...
@@ -351,6 +351,8 @@ static void parse_locale_name( const WCHAR *str, struct locale_name *name )
static
const
WCHAR
latnW
[]
=
{
'-'
,
'L'
,
'a'
,
't'
,
'n'
,
0
};
static
const
WCHAR
latnW
[]
=
{
'-'
,
'L'
,
'a'
,
't'
,
'n'
,
0
};
WCHAR
*
p
;
WCHAR
*
p
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
str
));
name
->
country
=
name
->
charset
=
name
->
script
=
name
->
modifier
=
NULL
;
name
->
country
=
name
->
charset
=
name
->
script
=
name
->
modifier
=
NULL
;
name
->
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_DEFAULT
),
SORT_DEFAULT
);
name
->
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_DEFAULT
),
SORT_DEFAULT
);
name
->
matches
=
0
;
name
->
matches
=
0
;
...
@@ -395,7 +397,6 @@ static void parse_locale_name( const WCHAR *str, struct locale_name *name )
...
@@ -395,7 +397,6 @@ static void parse_locale_name( const WCHAR *str, struct locale_name *name )
{
{
*
p
++
=
0
;
*
p
++
=
0
;
name
->
charset
=
p
;
name
->
charset
=
p
;
name
->
codepage
=
find_charset
(
name
->
charset
);
p
=
strchrW
(
p
,
'@'
);
p
=
strchrW
(
p
,
'@'
);
}
}
if
(
p
)
if
(
p
)
...
@@ -404,6 +405,9 @@ static void parse_locale_name( const WCHAR *str, struct locale_name *name )
...
@@ -404,6 +405,9 @@ static void parse_locale_name( const WCHAR *str, struct locale_name *name )
name
->
modifier
=
p
;
name
->
modifier
=
p
;
}
}
if
(
name
->
charset
)
name
->
codepage
=
find_charset
(
name
->
charset
);
/* rebuild a Windows name if possible */
/* rebuild a Windows name if possible */
if
(
name
->
charset
)
goto
done
;
/* can't specify charset in Windows format */
if
(
name
->
charset
)
goto
done
;
/* can't specify charset in Windows format */
...
...
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