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]
Other format: [Raw text]

Re: [g++ 4.4] Unicode string literal support?


On Sun, Oct 11, 2009 at 7:31 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi Beman
>> http://gcc.gnu.org/projects/cxx0x.html shows Unicode string literals (N2442) as
>> being supported in gcc 4.4. But this little program fails to compile:
>>
>> #include <iostream>
>> int main()
>> {
>> Â std::cout << u8"foo" << std::endl;
>> }
>>
> ...
>> Is this a bug in gcc? A bug in the C++0x Support page? A bug in my test?
>>
> To my best knowledge the feature is not implemented at all, thus a bug
> in the C++0x Support page.

Actually the front-end support is implemented but it is just u"foo"
(for UTF-8) and U"foo" (for UTF-16).  The library support is not there
though and you just get operator<<(void const*) .

Thanks,
Andrew Pinski


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