Alexandre Julliard
2cbb6f8d34
kernel32: Move some locale functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-21 13:20:23 +01:00
Alexandre Julliard
fd588a22b7
kernel32: Move string normalization functions to ntdll.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-21 10:43:46 +01:00
Alexandre Julliard
35ea9cd99a
kernel32: Move the locale registry setup to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-20 23:03:21 +01:00
Alexandre Julliard
ed09f37cef
kernel32: Get the initial locales from ntdll.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-20 22:45:58 +01:00
Alexandre Julliard
f1bfd2c0b1
ntdll: Initialize the system and user locales directly in ntdll.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-20 16:25:16 +01:00
João Diogo Ferreira
2a03c0958b
kernel32: Handle GEOCLASS_ALL in EnumSystemGeoID().
...
Signed-off-by: João Diogo Craveiro Ferreira <devilj@outlook.pt>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-19 23:15:04 +01:00
Alexandre Julliard
9f0983ddfc
kernel32: Use RtlLocaleNameToLcid().
2019-11-19 23:15:04 +01:00
Alexandre Julliard
4b1a8d6361
kernel32: Add more special cases in ConvertDefaultLocale().
2019-11-19 23:15:04 +01:00
João Diogo Ferreira
d353c96e83
kernel32: Add Kosovo, UN codes and change two parents in geoinfodata.
...
Signed-off-by: João Diogo Craveiro Ferreira <devilj@outlook.pt>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-18 20:01:17 +01:00
João Diogo Ferreira
c790422daa
kernel32: Fix null pointer access in GetGeoInfoW().
...
We were failing the conditional that would point «str» to «buffW»
when retrieving the GEO_ISO_UN_NUMBER of a location with UN code 0.
Some locations will keep having no UN code, such as Guantanamo Bay or
Johnston Atoll, since that's how those are defined in Windows.
Signed-off-by: João Diogo Craveiro Ferreira <devilj@outlook.pt>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-18 20:01:17 +01:00
Alexandre Julliard
42ed9797b1
kernel32: Move EnumCalendarInfo functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-18 19:12:13 +01:00
Alexandre Julliard
50d15730df
kernel32: Move EnumTimeFormats functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-16 20:11:21 +01:00
Alexandre Julliard
02d9ccb3c3
kernel32: Move EnumDateFormats functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-16 20:08:58 +01:00
Alexandre Julliard
dcdfe02a72
kernel32: Get rid of LOCALE_IDEFAULTUNIXCODEPAGE.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-13 13:47:45 +01:00
João Diogo Ferreira
c2485bb12e
kernel32: Handle GEOCLASS_REGION in Get/SetUserGeoID().
...
Signed-off-by: João Diogo Craveiro Ferreira <devilj@outlook.pt>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-12 22:05:58 +01:00
João Diogo Ferreira
dd505fab26
kernel32: Move Get/SetUserGeoID() to after the geoinfo struct.
...
Signed-off-by: João Diogo Craveiro Ferreira <devilj@outlook.pt>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-12 22:05:58 +01:00
Alexandre Julliard
6d8c58d7cc
kernel32: Retrieve the Unix codepage from ntdll.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-19 14:19:32 +02:00
Alexandre Julliard
a7c190d35f
kernel32: Move system locale enumeration functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-04 22:11:20 +02:00
Alexandre Julliard
14fbecee65
kernel32: Add set_ntstatus() helper.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-01 09:43:27 +02:00
Alexandre Julliard
7c0032b62a
kernel32: Move some locale functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-17 18:32:14 +02:00
Gabriel Ivăncescu
6f8bea3049
kernel32/locale: Don't fail with non-NULL args when the Unix codepage falls back to UTF-8.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-04 21:31:54 +02:00
Gabriel Ivăncescu
cf92311425
kernel32/locale: Set whether we used the default char when using Unix codepage.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-04 21:29:11 +02:00
Alexandre Julliard
2a455ce049
kernel32: Move lstr* string functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:56:46 +02:00
Manuel Edelmann
bc7e98a1a9
kernel32: Added stub for Set/GetProcessPreferredUILanguages.
...
Signed-off-by: Manuel Edelmann <varris@protonmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-27 20:52:38 +02:00
Alexandre Julliard
bb6bd8a2f1
make_unicode: Use a two-level table for the kernel32 wctype table.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Alexandre Julliard
02a04ba05e
make_unicode: Store the C2_* values directly in the kernel32 wctype table.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Alexandre Julliard
f09dade9cb
make_unicode: Add a wctype table in kernel32 for GetStringTypeW().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Piotr Caban
f09f686538
Revert "kernel32: Restore C locale for LC_CTYPE category.".
...
This reverts commit c8e195e179
.
There's still lots of code that works incorrectly in tr_TR.UTF-8 locale
but I think it's good to revert this patch before next release.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 22:01:39 +01:00
Piotr Caban
2eb1849100
kernel32: Don't use strcasecmp.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 22:01:31 +01:00
Piotr Caban
c8e195e179
kernel32: Restore C locale for LC_CTYPE category.
...
In tr_TR.UTF-8 locale tolower('I') != 'i' (this is not a bug in glibc,
tolower('I') is suppossed to return dotless i that is 2-byte long).
Because of that strcasemp("i", "I") returns that the strings are
different.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-18 21:43:00 +01:00
Jacek Caban
5bb4212397
kernel32: Support MUI_LANGUAGE_ID flag in EnumUILanguages.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-13 19:45:24 +01:00
Huw Davies
2d2e935190
kernel32: Implement canonical composing.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Huw Davies
dc919db2bf
kernel32: Implement canonical reordering.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Huw Davies
e4a9e2ff2e
kernel32: Initial support for canonical decomposition in NormalizeString().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Zhiyi Zhang
3ebd2f0be3
kernel32: Implement FindStringOrdinal.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46035
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-30 10:53:50 +01:00
Akihiro Sagawa
b02cdd3615
kernel32: Fix LCMapString buffer calculation with LCMAP_KATAKANA and LCMAP_HALFWIDTH.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45982
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:51 +02:00
Michael Stefaniuc
fe70e0e58f
kernel32: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:15:59 +02:00
Akihiro Sagawa
a5da525229
kernel32: Fix LCMapString(LCMAP_HALFWIDTH) in some cases.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45439
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-12 17:01:45 +02:00
Matej Špindler
da5112c743
kernel32: Check for LOCALE_NOUSEROVERRIDE for neutral locales.
...
Signed-off-by: Matej Špindler <spindler.matej@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-22 21:58:02 +02:00
Louis Lenders
e0f9ff9eb0
kernel32: Improve stub for SetThreadUILanguage.
...
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 20:47:11 +02:00
Jarkko Korpi
dc5b22963b
kernel32: Silence repeated LocaleNameToLCID unsupported flags.
...
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-21 10:14:44 +01:00
Sergio Gómez Del Real
2d74a4ff43
kernel32: Implement FindNLSStringEx.
...
Signed-off-by: Sergio Gómez Del Real <sdelreal@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 20:58:07 +01:00
Alexandre Julliard
c63a08586f
kernel32: Don't return a parent locale for neutral locales in GetLocaleInfoEx.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-28 20:32:52 +01:00
Alexandre Julliard
c5a39bd98f
kernel32: Keep the sublanguage specified by the script name when looking for the default.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 19:43:13 +01:00
Alexandre Julliard
de7e687801
kernel32: Also match script name when looking for a locale.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 19:04:04 +01:00
Jactry Zeng
b9a9fe4a04
kernel32: Add stub for ResolveLocaleName.
...
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-19 19:13:30 +02:00
Aric Stewart
9dc5d299f1
kernel32: Improve locale detection on Android.
...
setlocale is coded to just return 'C' for all inquiries ignoring locale
that may be set in the environment.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 17:59:09 +02:00
Alex Henrie
0b95ebd283
kernel32: Check for invalid flags in codepage conversion functions.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 10:31:46 +02:00
Andrew Eikum
72b9acd94b
kernel32: Don't care about case when finding matching locale.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 20:04:51 +01:00
Andrew Eikum
7737693693
kernel32: Use different default sublangs for Spanish and Chinese.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 20:04:49 +01:00