Re: What's in a wchar_t string on unix?

From: Tor Lillqvist (
Date: Tue Mar 02 2004 - 21:36:42 EST

  • Next message: Leon Zhu: "the length in semantic meaning for ligatures"

    Frank Yung-Fong Tang writes:
    > Also, in gnu's gcc and lib c implementation, wchar_t is defined to be 4
    > bytes and always hold utf-32 regardless which locale you are set
    > to.

    Make that "gcc when using GNU libc". When gcc is built to use some
    other C library it uses that C library's wchar_t. For instance, with
    Microsoft's C library on Win32 (a configuration knows as mingw), it
    uses 16-bit (UCS-2, or is it UTF-16?) wchar_t, just like Microsoft's


    This archive was generated by hypermail 2.1.5 : Tue Mar 02 2004 - 22:02:20 EST