tjr
7a8b48f087
Use __sfvwrite() instead of __sputc() via __fputwc() to write to fake
...
string files (__SSTR flag set). This is necessary because __sputc()
does not respect the __SALC flag, and crashes trying to flush the buffer
instead of resizing it.
PR: 59167
2003-11-12 08:49:12 +00:00
tjr
736d21ee30
Pass NULL instead of a pointer to a zeroed mbstate_t object.
2003-11-05 08:20:45 +00:00
das
30c051657a
%E-like %g and %G conversions should remove trailing zeroes unless
...
the # flag is present. Implement this behavior and add a comment
describing it.
Noticed by: Enache Adrian <enache@rdslink.ro>
Pointy hat to: das
2003-04-19 23:53:19 +00:00
tjr
bb06bbb4a0
Merge in vfprintf.c rev. 1.58.
2003-04-14 12:15:59 +00:00
tjr
7714c81b08
Catch up with recent vfprintf.c changes.
2003-04-07 06:36:49 +00:00
das
3a31325651
Add missing #include to unbreak previous commit.
2003-04-05 22:08:53 +00:00
das
c0e486bd07
Correct some buffer sizes.
...
- __vfprintf()'s 'buf' has never been used for floating point, so
don't define it in terms of (incorrect) constants describing
floating point numbers. The actual size needed depends on
sizeof(uintmax_t) and locale details, so I slightly overestimated.
- We don't need a 308-character buffer to store the string "308".
With long doubles and %a we need more than three characters, though.
2003-04-05 22:03:43 +00:00
tjr
d91d5d0610
Merge vfprintf.c revision 1.52.
2003-03-14 08:50:43 +00:00
tjr
4ffbd7a7a7
Unexpand RCS tag.
2003-03-14 04:46:02 +00:00
tjr
91582a7223
MFp4: Catch up to recent __dtoa() interface changes and removal of cvt()'s
...
last argument.
2003-03-13 05:49:09 +00:00
tjr
3a88c84c05
Set the error bit on the stream if an encoding error occurs. Improve
...
handling of multibyte sequences representing null wide characters.
2002-10-16 12:09:43 +00:00
tjr
232c5478a8
Add support for the XSI %C and %S formats, which are the same as %lc
...
and %ls.
2002-10-16 03:55:53 +00:00
tjr
530831782a
Use the new va_copy macro to copy variable argument lists instead of
...
assignment. This is needed on powerpc but is also more correct for the
other ports.
Submitted by: grehan
Tested on: alpha, i386, sparc64
2002-09-24 00:47:27 +00:00
tjr
111c3b394a
Add implementations of the wprintf() family of functions, which perform
...
formatted wide-character output.
2002-09-21 13:00:30 +00:00