diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-28 08:24:46 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-28 08:24:46 +0000 |
commit | 61b6263e81ed643acb29797a44b7699b8f01123d (patch) | |
tree | 89211f3df1b854343a8ab5c55df5f6568856af88 /lib/libc/stdio/getwchar.c | |
parent | e3283252f9faf305c9d6485bf3a3e172fe91bfed (diff) | |
download | FreeBSD-src-61b6263e81ed643acb29797a44b7699b8f01123d.zip FreeBSD-src-61b6263e81ed643acb29797a44b7699b8f01123d.tar.gz |
Handle boundary cases more correctly; mblen(s, 0) and mbtowc(NULL, s, 0)
return -1 regardless of what s points to, mbtowc(&w, s, 1) sets w to a
null wide character when s points to a null byte. This seems to be closer
to what most other implementations do, but the C99 standard contradicts
itself for these cases.
Diffstat (limited to 'lib/libc/stdio/getwchar.c')
0 files changed, 0 insertions, 0 deletions