Commit Graph

641 Commits

Author SHA1 Message Date
Alexandre Julliard c0fda77fe2 kernelbase: Remove the old GetLocaleInfoEx/W implementation.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 11:03:37 +02:00
Alexandre Julliard 78a33f9684 kernelbase: Reimplement SetLocaleInfoW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 11:03:37 +02:00
Alexandre Julliard 5014a44e3c kernelbase: Reimplement updating the locale values in the registry on locale change.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 11:03:37 +02:00
Alexandre Julliard 1398a01064 kernelbase: Reimplement fetching customized values from the registry in GetLocaleInfoW/Ex.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard 781086670d kernelbase: Reimplement values computed from date/time formats in GetLocaleInfoW/Ex.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard c957158730 kernelbase: Reimplement values computed from currency formats in GetLocaleInfoW/Ex.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard 08a9dc5031 kernelbase: Reimplement misc locale info values in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard 07cbbdeaaa kernelbase: Reimplement currency formatting values in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard ba43e4cfca kernelbase: Reimplement number formatting values in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Rémi Bernon 4ba774d85e kernelbase: Make (Global|Local)* traces and identifiers more consistent.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Rémi Bernon 424e38f3f8 kernelbase: Fix indentation of LocalReAlloc.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Alexandre Julliard 6549f1f3d2 kernelbase: Reimplement LOCALE_SSORTNAME in GetLocaleInfoW/Ex.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Alexandre Julliard d39c6851d3 kernelbase: Reimplement LOCALE_FONTSIGNATURE/SOPENTYPELANGUAGETAG in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:51 +02:00
Alexandre Julliard 712e4757c6 kernelbase: Reimplement misc format values in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:23 +02:00
Alexandre Julliard 00fd05d447 kernelbase: Reimplement calendar options in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:23 +02:00
Alexandre Julliard 30e8a28c3d kernelbase: Reimplement date/time format strings in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:23 +02:00
Alexandre Julliard ec5d3c9fe7 kernelbase: Reimplement LOCALE_SNATIVEDIGITS in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:23 +02:00
Alexandre Julliard f0d43939ff kernelbase: Reimplement LOCALE_ICOUNTRY/IGEOID in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:38:37 +02:00
Alexandre Julliard 62cd33e6b0 kernelbase: Reimplement LOCALE_*CURRNAME/CURRENCY in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:36:41 +02:00
Alexandre Julliard 37278557dd kernelbase: Reimplement LOCALE_*AM/PM in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:36:35 +02:00
Alexandre Julliard 9ef9d0293a kernelbase: Reimplement LOCALE_*PERCENT in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:36:30 +02:00
Alexandre Julliard 17928e6a01 kernelbase: Reimplement LOCALE_*INFINITY/NAN in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:36:20 +02:00
Alexandre Julliard ff323aeb65 kernelbase: Reimplement LOCALE_*MONTHNAME in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:47 +02:00
Alexandre Julliard 5bf289ea37 kernelbase: Reimplement LOCALE_*DAYNAME in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:46 +02:00
Alexandre Julliard b1e17a053a kernelbase: Reimplement LOCALE_*DEFAULTCODEPAGE in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:45 +02:00
Alexandre Julliard f0db567f67 kernelbase: Reimplement LOCALE_*DISPLAYNAME in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:30 +02:00
Alexandre Julliard 2c70ed249a kernelbase: Reimplement LOCALE_*CTRYNAME in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:28 +02:00
Alexandre Julliard 85a39a9773 kernelbase: Reimplement LOCALE_*LANGNAME in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:20:48 +02:00
Alexandre Julliard 956c88db18 kernelbase: Reimplement LOCALE_ILANGUAGE/IDEFAULTLANGUAGE in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Alexandre Julliard 412e79181f kernelbase: Reimplement LCIDToLocaleName() using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Alexandre Julliard 0f7cd3d685 kernelbase: Reimplement LOCALE_SPARENT in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Alexandre Julliard d370618a5a kernelbase: Reimplement LOCALE_SNAME in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Rémi Bernon bb17583239 kernelbase: Fix GlobalMemoryStatusEx counters.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-25 17:56:36 +01:00
Alexandre Julliard 989f7d6481 make_unicode: Generate the language groups registry keys.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 23:22:06 +01:00
Alexandre Julliard 4c51d77951 kernelbase: Reimplement EnumSystemLocalesA/W/Ex using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 17:17:10 +01:00
Alexandre Julliard 1f70f72b29 kernelbase: Reimplement EnumUILanguages() using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 17:11:08 +01:00
Alexandre Julliard e74b0dc880 kernelbase: Reimplement LocaleNameToLCID() using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 16:52:42 +01:00
Alexandre Julliard 17c353a3bb kernelbase: Reimplement ConvertDefaultLocale() using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 16:51:11 +01:00
Alexandre Julliard 0263494bec kernelbase: Reimplement IsValidLocale() using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 16:50:31 +01:00
Alexandre Julliard da125003e6 kernelbase: Reimplement IsValidLocaleName() using the locale.nls data.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 16:45:24 +01:00
Alexandre Julliard fffbe3fcae kernelbase: Load the locale.nls file at startup.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 16:02:35 +01:00
Alexandre Julliard 8ccb24b151 ntdll: Move user/system locale initialization to ntdll.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Zebediah Figura 26a3690796 kernelbase: Do not parse the hostname of internet URLs if they are missing a double slash.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Zebediah Figura a110b2e68e kernelbase: Do not parse username, password, and port separately for file URLs in UrlGetPart().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Zebediah Figura c2daf4f01e kernelbase: Do not allow schemes to be less than two characters in UrlGetPart().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Zebediah Figura a521bfd3f4 kernelbase: Do not return S_FALSE from UrlGetPartW().
Only return it from UrlGetPartA().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Alistair Leslie-Hughes aa2851f167 kernelbase: Trace not supported flags in CopyFileExW.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-22 22:42:33 +01:00
Paul Gofman d67129a777 kernelbase: Use FILE_LIST_DIRECTORY instead of GENERIC_READ in FindFirstFileExW().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-18 17:36:57 +01:00
Paul Gofman b3132be819 kernelbase: Query FileStandardInformation instead of FileEndOfFileInformation in SetFilePointerEx().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-18 17:36:53 +01:00
Eric Pouech f034084d49 kernelbase: Handle corner case in CreateProcess.
In CreateProcess, if:
- parent isn't attached to a console
- CreateProcess's flag isn't set with DETACHED_PROCESS nor
  CREATE_NEW_CONSOLE
- child is a CUI program
then a console must be allocated for the child.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52048
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-17 21:06:10 +01:00