RE: wchar_t (was RE: 32'nd bit & UTF-8)

From: Lars Kristan (
Date: Tue Jan 25 2005 - 12:55:46 CST

  • Next message: Hans Aberg: "Surrogate points"

    I wrote:
    > Well, if you put char into wchar_t then you performed a Latin
    > 1 to Unicode
    > conversion.

    And Arcane Jill wrote:
    > ...if and only if the following two conditions are met:
    > (1) the char string was encoded in Latin-1
    > (2) the wchar_t string is encoded in UTF-16 or UTF-32
    > (depeneding on the width
    > of wchar_t).
    > Neither of these conditions is guaranteed.
    > Jill

    Ad 1: You are being too practical with this condition. My view is that the
    conversion IS performed, regardless of what the char string contains.

    Ad 2: You are being too theoretical with this condition. I don't see what
    else one would put in wchar_t (when speaking of Unicode). I could be wrong,
    and if so, I'd be glad to hear what sorts of things people use wchar_t for.
    Speaking of Unicode, of course.


    This archive was generated by hypermail 2.1.5 : Tue Jan 25 2005 - 14:02:36 CST