Date: Sat, 1 Jul 2023 10:53:49 +0200 From: Yuri <yuri@aetern.org> To: Ed Schouten <ed@FreeBSD.org> Cc: current@FreeBSD.org Subject: motivation for iconv versions of mbrtocXX functions Message-ID: <7c2648bf-158d-d7c9-a68a-fcadf7004014@aetern.org>
index | next in thread | raw e-mail
(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 <ed@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7c2648bf-158d-d7c9-a68a-fcadf7004014>
