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
6d8c58d7
Commit
6d8c58d7
authored
Oct 19, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Retrieve the Unix codepage from ntdll.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4f420887
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
144 deletions
+24
-144
locale.c
dlls/kernel32/locale.c
+15
-141
directory.c
dlls/ntdll/directory.c
+6
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-1
rtlstr.c
dlls/ntdll/rtlstr.c
+1
-2
No files found.
dlls/kernel32/locale.c
View file @
6d8c58d7
This diff is collapsed.
Click to expand it.
dlls/ntdll/directory.c
View file @
6d8c58d7
...
...
@@ -336,6 +336,12 @@ static void init_unix_codepage(void) { }
#endif
/* __APPLE__ || __ANDROID__ */
UINT
CDECL
__wine_get_unix_codepage
(
void
)
{
if
(
!
unix_table
)
return
CP_UTF8
;
return
unix_table
->
info
.
codepage
;
}
/* check if a given Unicode char is OK in a DOS short name */
static
inline
BOOL
is_invalid_dos_char
(
WCHAR
ch
)
{
...
...
dlls/ntdll/ntdll.spec
View file @
6d8c58d7
...
...
@@ -1561,7 +1561,8 @@
@ cdecl wine_get_host_version(ptr ptr) NTDLL_wine_get_host_version
# Codepages
@ cdecl __wine_init_codepages(ptr ptr ptr)
@ cdecl __wine_init_codepages(ptr ptr)
@ cdecl __wine_get_unix_codepage()
# signal handling
@ cdecl __wine_set_signal_handler(long ptr)
...
...
dlls/ntdll/rtlstr.c
View file @
6d8c58d7
...
...
@@ -55,8 +55,7 @@ static const union cptable *oem_table = &cptable_20127;
*
* Set the code page once kernel32 is loaded. Should be done differently.
*/
void
CDECL
__wine_init_codepages
(
const
union
cptable
*
ansi
,
const
union
cptable
*
oem
,
const
union
cptable
*
ucp
)
void
CDECL
__wine_init_codepages
(
const
union
cptable
*
ansi
,
const
union
cptable
*
oem
)
{
ansi_table
=
ansi
;
oem_table
=
oem
;
...
...
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