theraven
0f6ef690b3
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a
...
load of _l suffixed versions of various standard library functions that use
the global locale, making them take an explicit locale parameter. Also
adds support for per-thread locales. This work was funded by the FreeBSD
Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes)
Approved by: dim (mentor)
2011-11-20 14:45:42 +00:00
das
97494c6c59
- Add support for multibyte decimal_point encodings, e.g., U+066B.
...
A forthcoming gdtoa import is needed to make this fully work.
- Improve the way "nan(...)" is parsed.
2009-01-19 06:19:51 +00:00
das
ec6292aa68
Remove some test instrumentation. (The Symbol.map changes broke it anyway.)
2007-12-09 21:00:12 +00:00
imp
cd1f140ae4
Per Regents of the University of Calfornia letter, remove advertising
...
clause.
# If I've done so improperly on a file, please let me know.
2007-01-09 00:28:16 +00:00
phk
a6edaf1c5c
Add missing #if's for NO_FLOATING_POINT
2006-04-01 19:06:54 +00:00
stefanf
bca82361aa
Include <sys/types.h> and <limits.h> ourselves, don't assume they are included
...
through <pthread.h>.
gen/sem.c: Prerequisite for <_semaphore.h>
net/getprotoent.c: USHRT_MAX
net/getservent.c: USHRT_MAX
stdio/ungetwc.c: MB_LEN_MAX
stdio/vfwscanf.c: MB_LEN_MAX
2005-08-20 07:59:13 +00:00
obrien
08cf798f1d
Remove bogus FBSDID.
2004-05-02 20:13:29 +00:00
das
0342c52a18
Merge vfscanf.c, v1.37:
...
- s/#ifdef FLOATING_POINT/#ifndef NO_FLOATING_POINT/
2004-05-02 10:56:26 +00:00
tjr
1c584f59a5
Prepare to handle trivial state-dependent encodings. Full support for
...
state-dependent encodings with locking shifts will come later if there
is demand for it.
2004-04-07 09:55:05 +00:00
das
a3a1377ebf
Merge vfscanf.c,v 1.35.
2004-01-31 23:18:53 +00:00
nectar
a455b2e93e
Make intentions explicit with additional parenthesis.
2004-01-06 18:32:24 +00:00
tjr
736d21ee30
Pass NULL instead of a pointer to a zeroed mbstate_t object.
2003-11-05 08:20:45 +00:00
tjr
8f7372609c
Fix two incorrect uses of sizeof: we need to divide the size of the buffer
...
by sizeof(wchar_t) to get the number of wide characters it contains.
Remove the !hardway micro-optimisation from the CT_INT case to avoid
having to fix it for wide characters.
2003-07-05 03:39:23 +00:00
tjr
c80ccf2b5d
Merge recent floating point conversion changes from vfscanf.c.
2003-07-05 02:35:06 +00:00
tjr
7d29f30b2b
No need to include floatio.h here: vfscanf() no longer uses anything
...
it defines.
2002-11-01 05:13:01 +00:00
tjr
235c4480d3
The field width for single-byte string conversions (%c, %s, %[) is the
...
maximum number of bytes that may be stored in the array, not the maximum
number of wide characters to read. The wording of the standard unfortunately
does not make this clear.
2002-10-17 12:02:36 +00:00
tjr
92cc4a5bcb
Remove an unneeded call to _sfrefill() that was missed in the conversion
...
from vfscanf() to vfwscanf(). It doesn't hurt to have it there, but it's
redundant since __fgetwc() will refill the buffer if it needs to.
2002-09-24 09:18:32 +00:00
tjr
516923dd04
Add implementations of wscanf() and related functions: fwscanf(), swscanf(),
...
vfwscanf(), vswscanf(), vwscanf(). As the name suggests, these are wide-
character versions of the scanf() family of functions.
2002-09-23 12:40:06 +00:00