On 2/12/2016 10:44 PM, J Decker wrote:
> On Fri, Feb 12, 2016 at 7:37 PM, Igor Tandetnik <igor at tandetnik.org> wrote:
>> It performs the conversion it is documented to perform. It indeed doesn't
>> perform the conversion that you, for reasons unclear, expect it to perform.
>> In other words, you engage in wishful thinking, and then blame the messenger
>> for failure of your wishes to materialize.
>
> I expect it to take any string

What is the basis of this expectation, other than wishful thinking?

Again, if you need to convert specifically between UTF-16 and UTF-8, 
there are API functions that are documented to do that, and they do 
work. They are WideCharToMultiByte and MultiByteToWideChar. wcstombs and 
mbstowcs are not documented to do that, and, quite unsurprisingly, they 
don't work for that.
-- 
Igor Tandetnik

Reply via email to