Commit Graph

49 Commits

Author SHA1 Message Date
Zebediah Figura f692d9e7bc kernel32/tests: Fix some codepage test failures with Windows 10.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-05 17:34:22 +01:00
Akihiro Sagawa a85bc781d3 kernelbase: Use translated Unicode default char to check invalid chars.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48288
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 18:45:01 +01:00
Akihiro Sagawa 3bb92d7773 kernel32/tests: Refactor MB_ERR_INVALID_CHARS tests.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 18:44:59 +01:00
Francois Gouget af638bc117 kernel32/tests: Fix the lcid and expected value in a codepage ok() call.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-21 21:00:59 +01:00
Zebediah Figura a7269a1035 kernel32/tests: Fix some codepage tests under Windows 10.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-28 21:09:58 +01:00
Gabriel Ivăncescu ec89a93028 kernel32/tests: Test partially overlapping buffers for MultiByteToWideChar.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-24 17:33:38 +01:00
Michael Stefaniuc 80be3a460b kernel32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 22:02:48 +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
Akihiro Sagawa 6938fec4ae libport: Fix null character handling when mapping DBCS characters.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 16:43:52 +09:00
Akihiro Sagawa cfe015a98c kernel32/tests: Add more partial DBCS character tests that contains a null character.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 16:43:49 +09:00
Alexandre Julliard 6203373496 libwine: Map partial DBCS characters to the default char.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 13:46:48 +09:00
Changhui Liu e776421232 kernel32/tests: Add tests for MultiByteToWideChar in DBCS codepage.
Signed-off-by: Changhui Liu <liuchanghui@linuxdeepin.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 00:37:25 +09:00
Alex Henrie 6e841fdb75 kernel32: Set error if dstlen < 0 in codepage conversion functions.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-25 18:49:49 +09:00
Nikolay Sivov a7e294c064 libwine: Fix double byte default char initialization. 2015-09-11 20:58:04 +09:00
Alex Henrie 6bcf9e4bd8 kernel32: Support UTF-7 in MultiByteToWideChar.
Portions of utf7_mbstowcs were written by Sebastian Lackner.
2015-02-09 20:41:42 +09:00
Alex Henrie 054fa77de0 kernel32: Support UTF-7 in WideCharToMultiByte.
Portions of utf7_wcstombs were written by Sebastian Lackner.
2015-02-09 20:37:27 +09:00
Alex Henrie ddc0c3203f kernel32/tests: Add tabular UTF-7 decoding tests. 2014-12-29 12:14:29 +01:00
Alex Henrie 38027cda8f kernel32/tests: Add tabular UTF-7 encoding tests. 2014-12-23 21:16:45 +01:00
Alex Henrie 0f93668637 kernel32/tests: Add UTF-7 implicit termination tests. 2014-11-07 20:57:01 +09:00
Alex Henrie 14f41641bb kernel32/tests: Add UTF-7 stray + sign removal tests. 2014-11-07 20:56:59 +09:00
Alex Henrie 3069e0c0a1 kernel32/tests: Add UTF-7 encoded surrounding characters tests. 2014-11-06 23:47:16 +09:00
Alex Henrie 7c1580a4a8 kernel32/tests: Add UTF-7 non-encoded surrounding characters tests. 2014-11-06 23:47:15 +09:00
Nikolay Sivov ee518b5e36 kernel32/tests: Don't test last error when there's no failure. 2014-02-12 19:15:12 +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
Andrew Talbot 64c6c08e08 kernel32/tests: Do not assume the signedness of plain char. 2013-03-01 10:35:38 +01:00
Alex Henrie 8ccf747d6a kernel32: Correct WideCharToMultiByte and MultiByteToWideChar error codes and conditions. 2012-05-17 17:44:26 +02:00
Francois Gouget 632ac0b227 kernel32: Avoid hardcoding the Unicode string literal lengths. 2011-12-16 17:40:40 +01:00
Austin English 187f50aad3 kernel32/tests: Remove win9x hacks. 2011-07-29 18:21:24 +02:00
Dmitry Timoshkov 08f8f50894 kernel32: Constify some data. 2011-04-07 10:23:12 +02:00
Akihiro Sagawa 16d5737009 libwine: MB_ERR_INVALID_CHARS makes an error when the undefined byte character is used. 2011-04-05 11:13:26 +02:00
Akihiro Sagawa 79d7cd76f9 kernel32/tests: Add a test for undefined byte character conversion. 2011-04-05 11:13:12 +02:00
Ge van Geldorp 55423d8df2 kernel32/tests: Check last error before calling lstrcmpA() since it may reset GLE. 2009-10-08 12:03:02 +02:00
Alexandre Julliard 97db90290b kernel32/tests: Avoid using non-ASCII characters in strings. 2009-07-07 13:57:17 +02:00
Michael Stefaniuc 9b2730eb88 kernel32: Remove superfluous pointer casts. 2009-03-11 13:03:31 +01:00
Paul Vriens cc57b863b5 kernel32/tests: Fix the remaining errors on win95. 2008-10-06 13:55:12 +02:00
James Hawkins 9aef134bdc kernel32: Fix a failing test in win95. 2008-08-29 13:22:31 +02:00
Francois Gouget a793888a28 Assorted spelling fixes. 2008-08-04 13:04:48 +02:00
Paul Vriens b2093dc86a kernel32/tests: Skip tests when codepage is not available. 2008-08-04 13:01:24 +02:00
Colin Finck eb8a6f70f5 kernel32/tests: Fix a wrong length passed to a WideCharToMultiByte test, which led to a use of uninitialized stack memory. 2008-08-01 11:18:11 +02:00
Colin Finck c2c1a55f1c kernel32: Add a lot of new tests for the actual WideCharToMultiByte string conversion as well. 2008-07-31 14:09:07 +02:00
Dan Kegel dcefb67781 kernel32: Test negative dest len in WideCharToMultiByte. 2008-03-26 23:38:36 +01:00
Dmitry Timoshkov fed582de5c kernel32: Make the test compatible with win9x. 2008-03-26 11:18:21 +01:00
Paul Vriens b0f7dcdf88 kernel32/tests: Skip some tests on win95. 2008-03-12 12:01:48 +01:00
Dmitry Timoshkov e690916f68 kernel32: Add an overflow test for MultiByteToWideChar. 2007-05-18 14:12:20 +02:00
Dmitry Timoshkov 90bafb3cc1 kernel32: Print last error value as unsigned, printing error in hex is useless. 2007-05-18 14:12:16 +02:00
Michael Stefaniuc 5263b5ec24 kernel32/tests: In multiline strings there is no need for '\' at the end of the lines. 2006-12-27 13:10:03 +01:00
Marcus Meissner 9e8b1259ca kernel32/tests: Test -1 length for NULL ptr too. 2006-11-24 11:50:36 +01:00
Michael Stefaniuc 8218440c20 kernel32/tests: Win64 printf format warning fixes. 2006-10-10 16:11:27 +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