This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [g++ 4.4] Unicode string literal support?
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: Beman Dawes <bdawes at acm dot org>, gcc at gcc dot gnu dot org
- Date: Sun, 11 Oct 2009 10:40:07 -0700
- Subject: Re: [g++ 4.4] Unicode string literal support?
- References: <loom.20091011T151728-441@post.gmane.org> <4AD1EC44.40008@oracle.com>
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