Date: Sun, 7 Sep 2014 12:24:43 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Is c16rtomb a buggy/underspecified API, or is it just me? I was looking at how much work would be involved in adding uchar.h functions (one of the few remaining C11 items), and I can't seem to figure out how c16rtomb is supposed to work. It's presumably for converting UTF-16 to the locale's multibyte encoding (UTF-8 in our case), since the opposite-direction function (mbrtoc16) has provisions for generating pairs of surrogates, but I can't see any provisions in the specification of c16rtomb for what it does when it gets the first of a pair of surrogates and thus isn't ready to produce any output. http://port70.net/~nsz/c/c11/n1570.html#220.127.116.11 Any ideas? Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.