Commit Graph

64 Commits

Author SHA1 Message Date
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
James Hawkins 43c97f4477 msvcrt: Trace the results of two failing tests. 2008-09-03 13:14:51 +02:00
Jon Griffiths 8e86162be5 msvcrt: Fix exponents in *printf family. 2008-07-16 20:10:28 +02:00
Alexandre Julliard d36c55001d msvcrt/tests: Fix a couple of tests on Vista. 2008-06-10 17:45:10 +02:00
Jon Griffiths 1484830628 msvcrt: Fix a test that fails on win95. 2008-05-28 19:32:44 +02:00
Karl Relton 260fd8a4a9 msvcrt: New implementation of fcvt. 2007-09-25 12:37:32 +02:00
Francois Gouget f793221f0f msvcrt/tests: When compiling with Visual C++ 2005, one must define _CRT_NON_CONFORMING_SWPRINTFS otherwise swprintf() takes an extra parameter. 2007-05-22 11:59:56 +02:00
Michael Stefaniuc bbe9c51b31 msvcrt: Fix *printf() handling of negative field width. 2007-02-05 12:26:10 +01:00
Andrew Talbot 9317377fb8 msvcrt/tests: Cast-qual warnings fix. 2006-12-12 12:11:12 +01:00
Jesse Allen a697fe51e0 msvcrt: printf buffer overrun tests. 2006-11-14 11:37:40 +01:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Peter Beutner bc83ae9fda msvcrt: Fix handling of 'h' prefix in swprintf.
- '%hs' in widechar string functions is wrongly recognized as
  a widechar string. Fix this by always checking the prefix first.
- add testcase
- remove code duplication in %c/%s handling by moving code into a function.
2006-05-16 20:21:44 +02:00
Alexandre Julliard ee603ce6dd msvcrt: Make snprintf and snwprintf use the msvcrt version of printf.
Remove todos from tests that succeed now.
2006-01-14 17:30:02 +01:00