This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Unicode (or any multibyte char support)


At 11:39 AM 4/14/00 +0300, ESTeam wrote:
>Hi,
>
>I was wondering if gcc supports in some way double byte
>strings (for Unicode support).

Yes, if your compiler is configured with WCHAR_TYPE and
WCHAR_TYPE_SIZE correctly.  For Unicode, the setting
probably should be
 #define WCHAR_TYPE "short unsigned int"
 #define WCHAR_TYPE_SIZE 16

Our version of gcc sets WCHAR_TYPE_SIZE to 8 bits
and WCHAR_TYPE to "char" for a couple of targets!

That will be changing Real Soon Now...



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]