This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: UTF16 patch


Hi,

On Wed, 10 Jun 2009, Caisucar, Manoj wrote:

> it can be seen that the support has been for gcc to support the utf_16 
> and utf_32.
> 
> GCC compiler is 
> gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux)
>
> But while compiling the program it gives me error if I use the u"" 
> literals. I wanted to know in which GNU compiler version this support is 
> given.

The above compiler supports this because we backported the necessary 
changes (I think officially it's only in since GCC 4.4).  You probably 
forgot the -std=gnu99 argument.

$ cat x.c
typedef unsigned short char16_t;
const char16_t        s16_1[] = u"ab";
$ gcc -c -std=gnu99 x.c
$


Ciao,
Michael.


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