Originally Posted by
Elysia
It should. It works for me.
What exactly did you try?
Currently, these two code samples produce the same respective output when compiled with the MinGW port of g++ 3.4.5 and MSVC8 on MS Windows XP:
Code:
#include <iostream>
int main()
{
std::cout << static_cast<char>(-126);
}
Code:
#include <iostream>
int main()
{
std::cout << static_cast<int>(L'þ');
}
I believe the deficiency of g++ is the lack of implementation of the wide I/O stream facilities, but that is not necessarily the same issue as a deficiency with Unicode. Unfortunately, I am also far from an expert on Unicode.