Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Sun, 7 Sep 2014 12:24:43 -0400
From: Rich Felker <>
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.

Any ideas?


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.