(also CC'ed current@ in case anyone else knows the answer)

Hi Ed,

Looking at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272293, I
noticed that non-iconv implementations of mbrtoc16/32 work correctly for
the provided test case, and before digging deeper into the issue with
iconv ones, I would like the initial motivation here, i.e. do you
remember what issues exactly did you see without iconv?

commit 49111f0092c9eff1bc03d95c7ca6275dc677b273
Author: Ed Schouten <e...@freebsd.org>
Date:   Mon Jun 3 17:17:56 2013 +0000

Add libiconv based versions of *c16*() and *c32*().

I initially thought wchar_t was locale independent, but this seems to be
only the case on Linux. This means that we cannot depend on the *wc*()
routines to implement *c16*() and *c32*(). Instead, use the Citrus
libiconv that is part of libc.

Reply via email to