UTF-8 support - char or wchar_t?

Paolo Carlini pcarlini@suse.de
Sun Jun 20 20:18:00 GMT 2004


Ole Laursen wrote:

>I reported a bug (#16006) which was closed as invalid,
>
To bel clear, if you *amend* your testcase as follows:

#include <iostream>

int main()
{
  std::ios::sync_with_stdio(false);

  std::wcout.imbue(std::locale("fi_FI.UTF-8"));
  std::wcout << 1224 << std::endl;
}

It works as you expext.

Paolo.



More information about the Libstdc++ mailing list