Commit Graph

72 Commits

Author SHA1 Message Date
Andrew Nguyen dd1b937287 msvcrt: Null terminate the temporary locale buffer in _create_locale.
Spotted with Valgrind.
2011-01-17 15:57:16 +01:00
Alexandre Julliard c5e88a3a69 msvcrt: Use the correct strdup function for locale data. 2010-06-28 11:45:01 +02:00
Piotr Caban c0637edda2 msvcrt: Added __crtLCMapStringW partial implementation. 2010-06-22 13:51:30 +02:00
Nikolay Sivov 90013af6f9 msvcrt: Fix __lconv_init() prototype. 2010-06-11 11:36:54 +02:00
Marcus Meissner 27a28bf29f msvcrt: Check locale for NULL before freeing. 2010-05-21 18:58:05 +02:00
Piotr Caban 4134c57a91 msvcrt: Fix compilation error (x86_64-pc-mingw32). 2010-05-20 13:47:52 +02:00
Piotr Caban 130686cbfc msvcrt: Fix synonym handling in setlocale/create_locale. 2010-05-10 10:09:21 +02:00
Piotr Caban 0697c5dc0e msvcrt: Partial fix for setlocale/create_locale. 2010-05-10 10:09:09 +02:00
Piotr Caban 815840e972 msvcrt: Added btowc implementation. 2010-04-26 09:06:13 -05:00
Piotr Caban 8adfd63c21 msvcrt: Return correct strings in setlocale. 2010-04-19 15:12:02 +02:00
Piotr Caban be5a6a03a6 msvcrt: Added implementation of __crtGetStringTypeW. 2010-04-19 15:11:14 +02:00
Piotr Caban f11dfcb7a6 msvcrt: Fix multiple locales parsing in _create_locale. 2010-04-19 15:11:00 +02:00
Piotr Caban f2f56d563f msvcrt: Change localeconv implementation. 2010-04-16 12:37:18 +02:00
Alexandre Julliard d4880b7a1f msvcrt: Initialize exported common variables to fix the build on Mac OS. 2010-04-16 12:01:35 +02:00
Piotr Caban d1fa8b64e4 msvcrt: Use per thread locale in many functions. 2010-04-15 16:51:47 +02:00
Piotr Caban 87dee43b0a msvcrt: Make setlocale working with per thread locales. 2010-04-15 16:51:46 +02:00
Piotr Caban 5efff16413 msvcrt: Added multiple locales parsing to _create_locale. 2010-04-15 16:51:46 +02:00
Piotr Caban 6ad7b4ff5c msvcrt: Move locale string interpretation to MSVCRT_locale_to_LCID. 2010-04-15 16:51:46 +02:00
Piotr Caban 20b77f4428 msvcrt: Added _configthreadlocale implementation. 2010-04-15 16:51:45 +02:00
Piotr Caban 59c2201a9c msvcrt: Add helper function that returns current locale. 2010-04-15 16:51:45 +02:00
Piotr Caban d58b385b38 msvcrt: Change implementation of setlocale. 2010-04-15 16:51:45 +02:00
Piotr Caban 10023a15d6 msvcrt: Change _create_locale implementation so generated structure is easier to modify. 2010-04-15 16:51:44 +02:00
Piotr Caban 7a1ff50ddc msvcrt: Added implemenatation of _create_locale and _free_locale. 2010-04-08 12:38:49 +02:00
André Hentschel 13e8505e58 msvcrt: Fix typo. 2010-01-19 16:50:26 +01:00
Alexandre Julliard 1f4febdb55 msvcrt: Implement __lconv_init. 2009-10-22 22:26:45 +02:00
Michael Stefaniuc 109f83614f msvcrt: Avoid using size_t when not neededed. 2009-05-27 15:40:18 +02:00
Hans Leidekker 4aec827b1e msvcrt: Implement ___lc_codepage_func, ___lc_collate_cp_func and ___lc_handle_func. 2009-04-15 15:56:45 -05:00
Michael Stefaniuc 9d4c9a0cdd msvcrt: Remove superfluous pointer casts. 2009-01-29 14:06:15 +01:00
Alexandre Julliard b19913ac70 msvcrt: Add a few more *_func functions to replace the __p_* ones. 2008-12-15 16:03:32 +01:00
Alexandre Julliard 7a6c6747a9 msvcrt: Don't include msvcrt headers, instead duplicate the definitions in msvcrt.h. 2008-12-12 10:19:55 +01:00
Rob Shearman d7ca73ce80 msvcrt: Fix testing zero-valued expression with bitwise and in find_best_locale_proc.
The check should be for all of the flags being set instead.
2008-09-23 16:00:05 +02:00
Alexandre Julliard 9c29dbd987 Avoid exporting common symbols since that's broken on Mac OS X. 2008-07-21 14:47:55 +02:00
Alexandre Julliard fcae6777a4 msvcrt: Added implementation of a few more __crt functions. 2007-09-19 17:53:06 +02:00
Mikolaj Zalewski ea824f830f msvcrt: Fill _mbctype table in _setmbcp. 2007-08-21 12:59:56 +02:00
Alexandre Julliard 6f9ad1b981 msvcrt: Export various locale and codepage variables. 2007-01-16 12:08:59 +01:00
Dmitry Timoshkov ffa84441c8 msvcrt: Make some data const. 2006-12-14 20:11:31 +01:00
Alexandre Julliard ec7f2f8802 msvcrt: Use LOCALE_USER_DEFAULT to get the proper codepage for the Unix locale. 2006-12-08 12:56:17 +01:00
Michael Stefaniuc 6520ee04c8 msvcrt: Win64 printf format warning fixes. 2006-10-04 09:58:47 +02:00
Alexandre Julliard 429cd9e817 msvcrt: Avoid including system headers in msvcrt.h. 2006-07-10 11:54:10 +02:00
Alexandre Julliard 24beabfd4e msvcrt: Explicitly specify CDECL calling convention on exported functions. 2006-06-13 11:40:23 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Mike McCormack d16c72dea5 msvcrt: Add a stub for _wsetlocale. 2006-02-28 12:02:13 +01:00
Rein Klazes f0af162aa3 Fix bogus unreal code page messages in _setmbcp(). 2005-11-21 13:34:37 +00:00
Alexandre Julliard 261e376495 Fixed a number of pointer to integer conversions that wouldn't work
right on a 64-bit platform.
2005-09-12 15:14:06 +00:00
Vijay Kiran Kamuju f58eed36ff Fix _setmbcp behavior for unreal codepages. 2005-07-11 14:21:53 +00:00
Alexandre Julliard dcad0864bb Fix duplication of _Getnames and _Gettnames, only the latter actually
exists.
2005-06-22 18:07:31 +00:00
Peter Berg Larsen 6e3bcb5a54 Replace strncpy with memcpy or lstrcpyn. 2005-04-18 10:30:55 +00:00
Bill Medland 2ea15a5673 Don't mess up the msvcrt codepage on e.g. _MB_CP_ANSI. 2004-11-21 15:42:03 +00:00
Alexandre Julliard 1b30417811 Function parameters don't need WINE_UNUSED. 2004-09-01 04:58:21 +00:00
Dimitrie O. Paun 0377462460 Split the MSVCRT implementation headers from the public headers.
Fix some naming conventions aberrations.
Add tests to ensure consistency between the two sets of symbols.
2004-06-25 01:19:15 +00:00