Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2013 15:41:25 -0400
From:      Glen Barber <gjb@FreeBSD.org>
To:        Ed Schouten <ed@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r250883 - in head: include include/xlocale lib/libc/locale sys/sys tools/regression/lib/libc/locale
Message-ID:  <20130522194125.GM77347@glenbarber.us>
In-Reply-To: <201305211959.r4LJxbLx034714@svn.freebsd.org>
References:  <201305211959.r4LJxbLx034714@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--bZ2MuwyI/0uB8yuJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 21, 2013 at 07:59:37PM +0000, Ed Schouten wrote:
> Author: ed
> Date: Tue May 21 19:59:37 2013
> New Revision: 250883
> URL: http://svnweb.freebsd.org/changeset/base/250883
>=20
> Log:
>   Add <uchar.h>.
>  =20
>   The <uchar.h> header, part of C11, adds a small number of utility
>   functions for 16/32-bit "universal" characters, which may or may not be
>   UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight
>   wrappers around wcrtomb() and mbrtowc().
>  =20
>   While there, also add (non-yet-standard) _l functions, similar to the
>   ones we already have for the other locale-dependent functions.
>  =20
>   Reviewed by:	theraven
>=20
> Added:
>   head/include/uchar.h   (contents, props changed)
>   head/include/xlocale/_uchar.h   (contents, props changed)
>   head/lib/libc/locale/c16rtomb.c   (contents, props changed)
>   head/lib/libc/locale/c32rtomb.c   (contents, props changed)
>   head/lib/libc/locale/mbrtoc16.c   (contents, props changed)
>   head/lib/libc/locale/mbrtoc32.c   (contents, props changed)
>   head/tools/regression/lib/libc/locale/test-c16rtomb.c   (contents, prop=
s changed)
>   head/tools/regression/lib/libc/locale/test-mbrtoc16.c   (contents, prop=
s changed)
> Modified:
>   head/include/Makefile
>   head/include/stdatomic.h
>   head/include/xlocale/Makefile
>   head/lib/libc/locale/Makefile.inc
>   head/lib/libc/locale/Symbol.map
>   head/lib/libc/locale/mbrtowc.3
>   head/lib/libc/locale/wcrtomb.3
>   head/lib/libc/locale/xlocale_private.h
>   head/sys/sys/_types.h
>   head/tools/regression/lib/libc/locale/Makefile
>=20

This fails to build for me with GCC.

/usr/src/lib/libc/locale/c16rtomb.c:73: error: too many arguments to functi=
on 'c32rtomb[21/1924]
/usr/src/lib/libc/locale/c16rtomb.c: At top level:
/usr/src/lib/libc/locale/c16rtomb.c:77: error: expected declaration specifi=
ers or '...' before ' char16_t'
/usr/src/lib/libc/locale/c16rtomb.c: In function 'c16rtomb': /usr/src/lib/l=
ibc/locale/c16rtomb.c:80: error: 'c16' undeclared (first use in this functi=
on)
/usr/src/lib/libc/locale/c16rtomb.c:80: warning: passing argument 3 of 'c16=
rtomb_l' from incompa
tible pointer type
/usr/src/lib/libc/locale/c16rtomb.c:80: error: too many arguments to functi=
on 'c16rtomb_l'
*** Error code 1

Stop.
make: stopped in /usr/src/lib/libc
*** Error code 1

Glen


--bZ2MuwyI/0uB8yuJ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iQEcBAEBCAAGBQJRnR9lAAoJEFJPDDeguUajcFcH/ipTIIYF+Afgvx4kIr+Np0ia
vrUQ0Nud/KKP04I38piXAdniCG/4nWAXDQjhbV35rrHAUpK/EqFRQq4WAtk72J0s
KNoUVpbloRaZ79ajTQW43WfW+J5MpoF7M5h4s2BTBNde4J77c3UMVE6BAUJiY0Py
ngGM9b/bQJEK1pf6mp/lvDu+hfmzESfoOQ5+C3VhrdYZ5YwjznkZ4O169S6k89wM
CLvmSFaqIoxJtSvRBDb+JYW/9gQyEGVDLPguAr/ii8t1NZ2R7XJMDJJpK04DACXV
rToZ6N056B1BqlqUilyJxTDb30dvUgcDCof8EhbffWNmUn+7GpCKEtxI/5AgXno=
=onj0
-----END PGP SIGNATURE-----

--bZ2MuwyI/0uB8yuJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130522194125.GM77347>