We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take this code snippet:
#include <iostream> #include <io.h> #include <fcntl.h> int wmain(int argc, const wchar_t* argv[]) { _setmode(_fileno(stdout), _O_WTEXT); std::wcout << L"Thử nghiệm\n"; return 0; }
On MS STL, this correctly outputs the string, but on libc++ it outputs nothing.
Additional notes: Add -municode when compiling with clang, and add /utf-8 when compiling with MSVC
-municode
/utf-8
The text was updated successfully, but these errors were encountered:
In contrast, the following equivalent C code works on both: #include <stdio.h> #include <io.h> #include <fcntl.h>
int wmain(int argc, const wchar_t* argv[]) { _setmode(_fileno(stdout), _O_WTEXT); _putws(L"Thử nghiệm\n"); return 0; }
Sorry, something went wrong.
I've posted an initial patch that tries to fix this issue at https://reviews.llvm.org/D146398.
fcbbd96
No branches or pull requests
Extended Description
Take this code snippet:
On MS STL, this correctly outputs the string, but on libc++ it outputs nothing.
Additional notes:
Add
-municode
when compiling with clang, and add/utf-8
when compiling with MSVCThe text was updated successfully, but these errors were encountered: