Subject: Re: CVS commit: src/sys/dev/usb
To: Dieter Baron <dillo@danbala.tuwien.ac.at>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 02/26/2007 14:58:03
--VdOwlNaOFKGAtAAV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Feb 26, 2007 at 03:08:44PM +0100, Dieter Baron wrote:
> In article <20070226134440.DC9502150A@cvs.netbsd.org> Matthias wrote:
> [...]
>=20
> Please note that fs/unicode.h does not handle UTF-16 surrogates
> correctly. What's worth, the API does not allow this to be fixed.
>=20
> (Unicode defines more characters than fit in a 16 bit int. In
> UTF-16, a character with a code above 0xffff is represented as two
> surrogate values. In UTF-8, it is encoded as a 5 byte sequence.
> Encoding/decoding one 16 bit value at a time does not allow for this
> conversion to be done correctly.)
Please feel free to suggest ways that this should be fixed. Patches are=20
best!
We all would like better unicode handling, and AFAIK no one is wedded to=20
the existing interface.
Take care,
Bill
--VdOwlNaOFKGAtAAV
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)
iD8DBQFF42X6Wz+3JHUci9cRAhCMAJ4mg+z2KRpIRvmCfq6RhtbSMNagmACfYSsf
gQAMUtRWWI4D+ZlH09r276I=
=cDVM
-----END PGP SIGNATURE-----
--VdOwlNaOFKGAtAAV--