Commit Graph

76 Commits

Author SHA1 Message Date
Piotr Caban 4a4621f42f msvcrt/tests: Use wide-char string literals.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 21:59:39 +01:00
Piotr Caban 8b7eedc180 msvcrt: Fix _vs{w,n}printf_c function when terminating character doesn't fit into buffer.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-15 21:43:45 +02:00
Piotr Caban 1bc6f0c861 msvcrt: Reimplement floating point numbers printing.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37913
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-13 21:22:11 +02:00
Piotr Caban 97557ae168 msvcrt: Enable printf %z, %t and %j formats.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-04 12:13:16 +01:00
Piotr Caban 1309e11ea1 msvcrt: Improve printf %I format support.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-04 12:13:11 +01:00
Piotr Caban f87b3750fc msvcrt: Add printf meaningless digits tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-01 17:13:04 +01:00
Piotr Caban 04a5beac69 msvcrt: Add printf rounding tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-01 17:13:02 +01:00
Piotr Caban 3798c0c4c9 msvcrt: Move more printf tests to table.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-01 17:12:59 +01:00
Piotr Caban c2b6dcb08f msvcrt: Fix test failures on Windows 10.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-01 17:12:55 +01:00
Piotr Caban 465f3cf37a msvcrt: Simplify printf tests table.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-01 17:12:51 +01:00
Piotr Caban d5cde6ea26 msvcrt: Cleanup sprintf tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-31 17:44:12 +01:00
Piotr Caban 70b3e2b0e8 msvcrt/tests: Add overlapped memory move sprintf test.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-16 12:31:22 +02:00
Alexandre Julliard a16ef96dc6 include/msvcrt: Add INFINITY and NAN definitions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:03:37 +02:00
Alexandre Julliard 7b83b6b9de msvcrt/tests: Add a function pointer to bypass builtin printf().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-11 19:29:41 +02:00
Piotr Caban a808235e45 msvcrt: Use mbtowc/wctomb for string conversion in printf.
This changes printf behaviour for C locale.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-15 15:06:28 +01:00
Michael Stefaniuc 3624b7c60c msvcrt/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-21 14:20:57 +02:00
Alexandre Julliard 7726157e19 msvcrt: Use WINAPIV calling convention for variadic functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 10:20:02 +01:00
Piotr Caban 1680e98427 msvcrt: Improve multibyte characters support in printf.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-15 16:06:30 -06:00
Martin Storsjo 4a79e54917 ucrtbase: Handle the C99 'z' size_t specifier for integers.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:19:32 +09:00
Martin Storsjo 494572ed4d msvcrt: Interpret 'I' as size_t size specifier for integer conversions.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:19:27 +09:00
Martin Storsjo 1d17e85026 msvcrt: Ignore 'N' as format length modifier for pointers, just like 'F'.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:19:07 +09:00
Martin Storsjo bf4493404c msvcrt: Remove a stray semicolon.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 23:35:29 +09:00
Piotr Caban 248bd63b53 msvcrt/tests: Use NAN and INFINITY definitions from port.h in printf tests. 2015-03-25 22:40:09 +09:00
Hugh McMaster d999fd0d11 msvcrt/tests: Add more tests for _vsnwprintf. 2015-01-07 23:48:26 +01:00
Piotr Caban 2693ce1a25 msvcrt: Don't add 0x prefix while printing 0 with printf. 2014-03-20 17:44:05 +01:00
Piotr Caban 6594212dd6 msvcrt: Fix Inf and NaN handling in printf function. 2013-09-16 19:51:04 +02:00
Piotr Caban 343122a494 msvcrt: Added _set_output_format tests. 2013-03-27 12:13:23 +01:00
Piotr Caban 8401224731 msvcrt: Added fwprintf tests. 2013-01-11 12:04:43 +01:00
Piotr Caban d958ecbc69 msvcrt: Fixed floating point numbers printing when flags.Sign=' '. 2012-12-12 11:59:55 +01:00
Piotr Caban 0cc16fc8a5 msvcrt: Fixed 'h' modifier handling when printing integers. 2012-04-16 18:56:15 +02:00
Piotr Caban 79c19aef29 msvcrt: Fixed printf behaviour on hexadecimal, zero-padded numbers. 2012-03-13 10:26:05 +01:00
Piotr Caban b7ea63118a msvcrt: Fix _vswprintf* arguments. 2011-09-05 19:57:47 +02:00
Piotr Caban 00182ca6d9 msvcrt: Added sprintf_p_l implementation. 2011-04-27 13:18:59 +02:00
Piotr Caban dbc8c07ba8 msvcrt/tests: Added fprintf tests. 2011-04-25 14:35:52 +02:00
Nikolay Sivov 0512829a27 msvcrt: Add _get_output_format() and return default value. 2011-03-09 12:30:30 +01:00
Francois Gouget bf75229a04 msvcrt/tests: Add a trailing '\n' to an ok() call. 2011-03-07 11:09:00 +01:00
Nikolay Sivov 7a57f02b8d msvcrt: Implement _fcvt_s(). 2011-01-31 12:31:22 +01:00
Eryk Wieliczko b74ef16d99 msvcrt/tests: Add _fcvt_s tests. 2010-12-23 13:47:10 +01:00
Francois Gouget f63cdea40a msvcrt/tests: Add a trailing '\n' to an ok() call. 2010-12-13 12:43:29 +01:00
Eryk Wieliczko a2af7ccd99 msvcrt/tests: Add _ecvt_s tests. 2010-12-10 15:46:09 +01:00
Greg Geldorp 913c91fd47 msvcrt/tests: ecvt on Win9x and NT4 will corrupt memory if nrdigits < 0. 2010-07-19 14:49:07 +02:00
Alexander Scott-Johns f2229e6de0 msvcrt/tests: Move function pointer initialization code in printf.c into separate init function. 2010-06-09 16:12:37 +02:00
Alexander Scott-Johns d313c0b982 msvcrt/test: Add some simple _vsnwprintf_s tests. 2010-06-07 13:52:09 +02:00
Alexander Scott-Johns b205fd8108 msvcrt/tests: Properly skip if functions are not available. 2010-06-07 13:51:24 +02:00
Alexandre Julliard 7e082f6608 msvcrt/tests: Make all msvcrt function pointers cdecl. 2009-05-23 11:57:38 +02:00
Rein Klazes 1ab5f4191d msvcrt: Correct implementation of _ecvt() with tests. 2009-04-14 14:50:07 -05:00
Hans Leidekker c3f6668f33 msvcrt: Add tests for _vscprintf and _vscwprintf. 2009-03-26 16:13:18 +01:00
Hans Leidekker 120120e37e msvcrt: Add a test for _vsnwprintf. 2009-01-27 14:27:03 +01:00
Alexandre Julliard 159dfb219c msvcrt/tests: Fix the printf pointer formatting tests on 64-bit. 2009-01-04 14:47:59 +01:00
Alexandre Julliard 3e78cca50c msvcrt/tests: Fix the %n format test for Vista. 2008-09-04 12:27:29 +02:00