Commit 6d8c58d7 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Retrieve the Unix codepage from ntdll.

parent 4f420887
......@@ -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 )
{
......
......@@ -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)
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment