Vincent Povirk
49f3b4282d
kernel32: Cache locale info from the registry.
2014-03-06 17:18:51 +01:00
Daniel Lehman
37dad12971
kernel32: Use ANSI code page if current thread locale has no code page.
2013-11-08 16:29:43 +01:00
Tatyana Fokina
aaed0e81d5
kernel32: Check the size of the string in CompareStringA.
2013-06-11 19:31:45 +02:00
Qian Hong
32e5314250
kernel32: Fixed string comparision for non-canonical locale identifiers such as zh_CN VS zh-Hans on OS X.
2013-04-30 11:49:06 +02:00
Piotr Caban
46919f2154
kernel32: Fixed copy-paste error in IdnToUnicode.
2013-03-28 18:54:51 +01:00
Christian Costa
ba5cade700
kernel32: Implement CompareStringOrdinal.
2012-11-02 19:47:15 +01:00
Nikolay Sivov
2097c5ddb6
kernel32: Handle neutral locale names better in GetLocaleInfoEx.
2012-08-27 19:42:52 +02:00
André Hentschel
20e1b46d83
kernel32: Fix LocaleNameToLCID on mismatch.
2012-08-17 10:46:27 +02:00
Austin English
5dfc2a34ea
kernel32: Implement IsValidLocaleName (with tests).
2012-08-16 17:26:45 +02:00
Michael Stefaniuc
97512d70cf
kernel32: Avoid TRUE:FALSE conditional expressions.
2012-07-31 12:36:54 +02:00
Nikolay Sivov
9ba0cf76db
kernel32: Fix base for value returned with LOCALE_RETURN_NUMBER.
2012-07-26 13:40:43 +02:00
Nikolay Sivov
77ad893a7b
kernel32: Forward GetLocaleInfoEx() to GetLocaleInfoW().
2012-07-23 12:50:56 +02:00
Nikolay Sivov
b586be515c
kernel32: Added GetSystemDefaultLocaleName().
2012-07-23 12:50:26 +02:00
Nikolay Sivov
0e234f3c25
kernel32: Partial CompareStringEx implementation.
2012-07-20 14:01:45 +02:00
Austin English
b22de982c0
kernel32: Add a stub for GetLocaleInfoEx.
2012-07-10 10:43:06 -05:00
André Hentschel
3cd0834a24
kernel32: Change LCMapStringW to LCMapStringEx and call it from LCMapStringW.
2012-06-28 11:36:56 +02:00
Alex Henrie
8ccf747d6a
kernel32: Correct WideCharToMultiByte and MultiByteToWideChar error codes and conditions.
2012-05-17 17:44:26 +02:00
Alex Henrie
92b4979b33
kernel32: Avoid calling MultiByteToWideChar with invalid parameters.
2012-05-17 17:44:26 +02:00
Piotr Caban
e2f0463963
kernel32: Added IdnToUnicode implementation.
2012-04-30 20:03:26 +02:00
Piotr Caban
03b58f580c
kernel32/tests: Added IdnToAscii tests.
2012-04-30 20:03:26 +02:00
Piotr Caban
04ad71ee05
kernel32: Added IdnToAscii implementation.
2012-04-30 20:03:25 +02:00
Piotr Caban
60b25b7dd6
kernel32: Support multiple labels in IdnToNameprepUnicode.
2012-04-30 20:03:25 +02:00
Piotr Caban
a08710f3d0
kernel32: Added IdnToNameprepUnicode implementation.
2012-04-26 19:47:57 +02:00
André Hentschel
21b6d994d2
kernel32: Handle LOCALE_NAME_USER_DEFAULT with tests.
2012-03-27 11:55:05 +02:00
Andrew Talbot
d1136d4aca
kernel32: Remove unused file-static variables.
2011-11-16 09:44:48 +01:00
Frédéric Delanoy
b5a33dab88
dlls: Assorted spelling fixes.
2011-08-02 20:47:51 +02:00
Frédéric Delanoy
6471e862f6
kernel32: Fix function description of CompareStringA and lstrcmpA.
2011-07-20 19:42:10 +02:00
Thomas Mullaly
1c7d32aa25
kernel32: Added stubs for IDN functions.
2011-01-04 11:49:45 +01:00
Alexandre Julliard
9f792ab3d5
kernel32: Implemented EnumSystemLocalesEx.
2010-09-27 14:13:17 +02:00
Rudolf Mayerhofer
2637bb9de7
kernel32: Implement GetUserDefaultLocaleName using users default LCID.
2010-09-15 11:28:53 -05:00
Louis Lenders
afa53a37a4
kernel32: Add stub for GetUserDefaultLocaleName.
2010-08-30 15:36:28 +02:00
Alexandre Julliard
d0578c080a
kernel32: Map the new detailed direction information back to the Windows constants.
2010-04-14 18:00:45 +02:00
Alexandre Julliard
ea3f48ff11
kernel32: Create the Nls\CodePage key one element at a time.
2010-03-01 14:06:08 +01:00
Alexandre Julliard
f5248ef7c8
kernel32: Create the Control Panel\International key one element at a time.
2010-03-01 14:04:33 +01:00
Ken Thomases
8c2b290d11
kernel32: Mac: If language is less specific variant of locale, keep locale.
...
For a Mac user in Australia, for example, the out-of-the-box configuration is
that the preferred language is generic English ("en"). Their formats locale
should be Australia ("en_AU"). Detect that case and don't override
LC_MESSAGES.
2010-02-22 11:41:38 +01:00
Alexandre Julliard
9ff8da5499
kernel32: Don't store the current codepage in the thread data.
2009-12-29 11:43:46 +01:00
Ken Thomases
18d9632914
kernel32: Consolidate some related code closer together.
2009-12-10 12:21:42 +01:00
Ken Thomases
b58cd975ba
kernel32: Mac lang. pref. overrides LANG, but not LC_ALL or LC_MESSAGES.
2009-12-10 12:21:25 +01:00
Ken Thomases
21acb71e42
kernel32: On Mac, construct locale string from language and country codes.
...
Don't rely on CFLocaleGetIdentifier(), whose result may not be sensible to
the C library.
2009-12-10 12:21:10 +01:00
Paul Chitescu
590cc1ad55
kernel32: Reduce registry access to KEY_READ wherever possible.
2009-11-30 16:33:54 +01:00
Alexandre Julliard
cf8fa5459a
kernel32: Make sure the codepage registry keys are set correctly on wineprefix creation.
2009-10-30 15:14:49 +01:00
Nikolay Sivov
e94587c98d
kernel32: Fix copied data length.
2009-10-23 12:02:17 +02:00
Nikolay Sivov
2b7a3657f7
kernel32/locale: Add support for LOCALE_RETURN_GENITIVE_NAMES for LOCALE_SMONTHNAME* locale data, update Russian nls resource accordingly.
2009-10-21 16:05:57 +02:00
Jeff Zaroyko
8274786fa8
kernel32: sLanguage is LOCALE_SABBREVLANGNAME.
2009-08-25 15:08:23 +02:00
Michael Stefaniuc
9b2730eb88
kernel32: Remove superfluous pointer casts.
2009-03-11 13:03:31 +01:00
Alexandre Julliard
317ad64985
kernel32: LCMapString should include the terminating NULL also for LCMAP_SORTKEY.
2009-01-19 13:46:30 +01:00
Maarten Lankhorst
768160e944
ntdll: Make all exported wine functions CDECL.
2008-12-17 15:02:25 +01:00
Alexandre Julliard
bcc77a89b2
kernel32: Convert source files to utf-8.
2008-10-18 19:20:02 +02:00
Alexandre Julliard
49421014b7
kernel32: Fix a compiler warning on Mac OS.
2008-08-21 16:04:58 +02:00
Ken Thomases
59bf036c80
kernel32: Strip modifiers from the Mac locale so setlocale can parse it.
...
The CFLocale API can produce locale identifiers with modifiers, such as
"pl_PL@currency=EUR". However, the Mac setlocale() can't understand such
locale strings.
2008-08-18 14:34:10 +02:00
Andrew Talbot
dffba6aa4b
kernel32: Remove unneeded address-of operators from array names.
2008-07-11 14:06:06 +02:00
Alexandre Julliard
58913b439b
kernel32: On Mac OS, recompose the Unicode strings we get from the OS.
2008-02-15 12:07:56 +01:00
Dmitry Timoshkov
667dad2331
kernel32: Separate modifier from charset before detecting the charset codepage.
2008-02-08 13:13:20 +01:00
Francois Gouget
44b52b128c
Assorted spelling fixes.
2008-01-16 12:48:29 +01:00
Aric Stewart
6a8219a6b1
kernel32: Set last error to ERROR_INSUFFICIENT_BUFFER in LCMapString when the sort key buffer is too small.
2007-10-26 14:03:46 +02:00
EA Durbin
9984ac8a12
kernel32: Partially implement GetUserGeoID().
2007-10-18 14:18:35 +02:00
Alexandre Julliard
60c562446c
kernel32: Get rid of the NLS_RegOpenSubKey function, its behavior is broken.
2007-10-12 11:47:34 +02:00
EA Durbin
64dda7f317
kernel32: Implement SetUserGeoID.
2007-10-10 11:18:21 +02:00
Francois Gouget
015dc79cd4
version: Fix some Ver*() prototypes (especially wrt constness).
...
Better match the PSDK types and fix the winapi_check warnings.
2007-09-10 12:13:41 +02:00
Alexandre Julliard
2e55b3d6ab
kernel32: Store a few more locale values in the registry.
2007-08-28 11:36:45 +02:00
Alexandre Julliard
2835d78d8d
kernel32: Remove the fixme about MB_USEGLYPHCHARS.
2007-05-29 23:31:35 +02:00
Dmitry Timoshkov
a67b689121
kernel32: Fix compilation warnings in 64-bit mode.
2007-05-23 13:13:54 +02:00
Chia-I Wu
bbbd42787c
kernel32: Fix non-terminated separator string.
2007-04-16 12:07:44 +02:00
Andrew Talbot
503b338e88
kernel32: Replace inline static with static inline.
2007-03-17 20:03:39 +01:00
Alexandre Julliard
a79b26284a
libwine: Pass flags to wine_utf8_wcstombs to allow supporting WC_ERR_INVALID_CHARS.
2007-03-14 15:57:50 +01:00
Dmitry Timoshkov
d32d5a4706
kernel32: Add a trace to MultiByteToWideChar.
2007-02-05 12:28:57 +01:00
Anatoly Lyutin
11e7b64ec9
kernel32: Add details in description function MultiByteToWideChar and WideCharToMultiByte.
2007-01-15 13:00:53 +01:00
Ken Thomases
5a220321df
kernel32: Don't release preferred_locales until we're done with its members.
2007-01-09 12:04:30 +01:00
Pierre d'Herbemont
5ff751156d
kernel32: Remove unneeded headers.
2006-12-13 16:05:11 +01:00
Pierre d'Herbemont
3c0d2e3808
kernel32: Allow the preferred language to be different from the preferred locale on Mac OS X.
2006-12-12 20:17:19 +01:00
Alexandre Julliard
9967d82146
kernel32: For LOCALE_NOUSEROVERRIDE, check locale against the appropriate default lcid.
2006-12-07 12:34:25 +01:00
Alexandre Julliard
28c5396436
kernel32: Store the LC_MESSAGES value under the "Locale" value.
...
Some apps depend on the value. Reported by Karsten Elfenbein.
2006-12-04 18:00:55 +01:00
Alex Villacís Lasso
cf0c21af47
kernel32: Restore C locale for LC_NUMERIC.
2006-11-22 11:42:17 +01:00
Marcus Meissner
87f9dcdb23
kernel32: Added missing shift by 8.
2006-11-20 11:23:32 +01:00
Alexandre Julliard
2b01f6e07c
kernel32: Use the appropriate Unix locale for GetLocaleInfo when a default LCID is used.
...
For instance LOCALE_SDATE is looked up in the lcid corresponding to
LC_TIME, LOCALE_IDIGITS in the LC_NUMERIC lcid, etc.
2006-11-16 22:11:58 +01:00
Alexandre Julliard
123b6fec22
kernel32: Rewrote the locale matching to match more elements and to support Windows-format locale names.
...
Added implementation for LocaleNameToLCID and LCIDToLocaleName.
2006-11-16 22:11:19 +01:00
Mike McCormack
15446fb9c0
kernel32: Print a FIXME only once.
2006-11-14 11:35:11 +01:00
Alexandre Julliard
7a1522a20f
kernel32: Use LC_NUMERIC instead of LC_ALL to determine the user locale.
...
Passing LC_ALL to setlocale() doesn't do what we want.
2006-11-13 14:27:00 +01:00
Alexandre Julliard
63ca94c419
kernel32: Fixed buffer overrun in get_registry_locale_info.
2006-11-09 12:03:21 +01:00
Alexandre Julliard
ed58b1bad0
kernel32: Better workaround for the lack of locale environment variables on MacOS.
2006-11-07 18:24:15 +01:00
Robert Shearman
ed263ae48e
kernel32: Add support for detecting the user locale preference from the system on Mac OS X.
2006-10-16 20:10:25 +02:00
Michael Stefaniuc
8c38b88068
kernel32: Win64 printf format warning fixes.
2006-10-13 12:08:25 +02:00
Alexandre Julliard
489d87d1e5
kernel32: Renamed the kernel directory to kernel32.
...
Also get rid of the kernel/messages subdirectory.
2006-09-12 13:34:06 +02:00