History log of /openbsd-current/include/wchar.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_2_BASE
# 1.31 05-Sep-2017 schwarze

New POSIX xlocale implementation written from scratch.
Complete in the sense that all POSIX *locale(3) and *_l(3) functions
are included, but in OpenBSD, we of course only really care about
LC_CTYPE and we only support ASCII and UTF-8.

With important help from kettenis@, guenther@, and jca@.
Repeated testing in ports bulk builds by naddy@.
Additional testing by jca@, sebastia@, dcoppa@, and others.
OK kettenis@ dcoppa@, and guenther@ on an earlier version.
Riding guenther@'s libc/librthread major bump.


Revision tags: OPENBSD_6_1_BASE
# 1.30 09-Sep-2016 millert

Move the 10 (!) defintions of NULL to their own mini header file and
update the NULL definition for C++11. OK deraadt@ guenther@ kettenis@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.29 04-Apr-2015 guenther

gcc 2.x is dead

ok millert@


Revision tags: OPENBSD_5_7_BASE
# 1.28 09-Feb-2015 millert

Protect fgetwln(), wcslcat() and wcslcpy() with __BSD_VISIBLE
OK tedu@ kettenis@


# 1.27 12-Jan-2015 millert

Add fgetwln(3) from FreeBSD and bump libc minor revision.


Revision tags: OPENBSD_5_6_BASE
# 1.26 12-Jul-2014 guenther

Per C99, wchar.h has to forward declare struct tm


# 1.25 03-May-2014 martynas

Annotate wide character routines so they get protected by Wbounded.
OK millert@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.24 28-Mar-2013 eric

Enable fmemopen(3) and open_{w,}memstream(3)

commiting on behalf of mpi@


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.23 06-Jun-2012 matthew

Add support for mbsnrtowcs() and wcsnrtombs() to libc.

Bulk build test by naddy.


Revision tags: OPENBSD_5_1_BASE
# 1.22 05-Jan-2012 kettenis

C99 says that both <wchar.h> and <stdint.h> should define WCHAR_MIN/MAX.

ok beck@, guenther@, millert@, miod@


# 1.21 16-Oct-2011 stsp

Hook wcsftime(3) to the build; committing on behalf of espie


# 1.20 16-Oct-2011 stsp

Add wscanf(3) and friends. Based on our scanf(3) implementation, with wide
character support changes based on code from FreeBSD.
ok espie guenther; man page help from schwarze


Revision tags: OPENBSD_5_0_BASE
# 1.19 04-Jul-2011 nicm

Add wcsdup(), from NetBSD.

ok deraadt matthew


# 1.18 03-Jul-2011 jsg

As pointed out by Richard Guenther our definition
of NULL was incorrect for c++ compilers that aren't
gcc (or pretend to be gcc like clang).

ok miod@


# 1.17 01-Jun-2011 millert

Use __POSIX_VISIBLE not __POSIX_C_SOURCE to bracket the definitions
of wcscasecmp() and wcsncasecmp(). Noticed by naddy@ OK espie@


# 1.16 28-May-2011 espie

wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@


# 1.15 28-Apr-2011 stsp

Bring back wprintf. We've sorted out what to do for gcc2 and gcc3.
"Yes, go ahead then" deraadt


# 1.14 24-Apr-2011 stsp

Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.


# 1.13 24-Apr-2011 stsp

Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc.
Based on our vfprintf etc. implementations. Wide character parts based on
NetBSD but with lots of macros expanded. Minor bump for libc.
ok kettenis espie


# 1.12 06-Apr-2011 miod

Define NULL as a void * instead of a long integer, as required by Single Unix.
Kernel and bootblocks still use the old 0L value until all the NULL abuses
in the code are fixed.


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.11 24-Jul-2010 guenther

Don't declare wcscoll() twice


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.10 13-Jan-2009 kettenis

Add wcstof(3) and wcstold(3).

ok miod@


Revision tags: OPENBSD_4_4_BASE
# 1.9 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.8 06-Jan-2006 millert

Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable


# 1.7 19-Dec-2005 millert

This piece was missed in the _FOO_SOURCE -> __FOO_VISIBLE change set.


Revision tags: OPENBSD_3_8_BASE
# 1.6 01-Jul-2005 espie

Add a few missing functions so that wctype.h/wchar.h are more or less
uptodate, namely, wcsto(u)l(l) family, wcstod, stubs from wctrans/towctrans

crank minor.

okay millert@, jmc@.


# 1.5 20-Jun-2005 espie

zap duplicate prototype


# 1.4 17-Jun-2005 espie

next citrus step.

reviewed by millert, otto, kevlo, naddy, kettenis...
libc+libstdc++ bump


# 1.3 18-May-2005 espie

wchar_t is a native C++ type, gcc picks its definition from elsewhere,
so do not redefine it.

Found out by the quite picky fixinc in recent gcc.

okay millert@, kettenis@


# 1.2 11-May-2005 espie

major abi changes:

* introduce the mbstate_t typedef.
impacts gnu libiconv, which has already been taken care of.

* Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with
an external variable __mb_cur_max (impacts libX11 and various ports).

* use mbstate in all the mb <-> wchar functions with state.
* add a stub iswctype function allowing some ports to compile.

bash and gdiff are missing wcscoll, and need to be told there's no i18n
until this is fixed.

Discussed and matthieu, otto, millert, kettenis, deraadt.

Major libc bump


# 1.1 14-Apr-2005 espie

introduce some wchar functions (from citrus and an itojun@ diff)
okay deraadt@, cloder@, pvalchev@
thanks to everyone who commented on that.