[g++ 4.4] Unicode string literal support?

2009-10-11 Thread Beman Dawes
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 int main() { std::cout << u8"foo" << std::endl; } C:\gcc>bin\g++ -std=gnu++0x u8-literal.cpp u8-literal.cpp: In function 'int main()':

Re: Implementation of C++ N2053?

2006-12-06 Thread Beman Dawes
Ian Lance Taylor wrote: Beman Dawes writes: I've proposed adding raw string literals to C++. See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2053.html Interesting idea. I think there is a misspelling of std::ispunct in there. Yep. Fixed in the revision. Thanks! So far

Implementation of C++ N2053?

2006-12-06 Thread Beman Dawes
ng() function. My initial thought is to also handle embedded newlines within lex_string(), but before attempting that approach I'd like advice from GCC maintainers familiar with GCC's lexical processing. Who maintains libcpp/lex.c? What is the best way to proceed? Thanks, --Beman Dawes