{"action":"opened","issue":{"url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8473","repository_url":"https://api.github.com/repos/emscripten-core/emscripten","labels_url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8473/labels{/name}","comments_url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8473/comments","events_url":"https://api.github.com/repos/emscripten-core/emscripten/issues/8473/events","html_url":"https://github.com/emscripten-core/emscripten/issues/8473","id":436065850,"node_id":"MDU6SXNzdWU0MzYwNjU4NTA=","number":8473,"title":"wcout (fails) vs wprintf (succeeds) to print special characters","user":{"login":"tomasklapka","id":370171,"node_id":"MDQ6VXNlcjM3MDE3MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/370171?v=4","gravatar_id":"","url":"https://api.github.com/users/tomasklapka","html_url":"https://github.com/tomasklapka","followers_url":"https://api.github.com/users/tomasklapka/followers","following_url":"https://api.github.com/users/tomasklapka/following{/other_user}","gists_url":"https://api.github.com/users/tomasklapka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasklapka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasklapka/subscriptions","organizations_url":"https://api.github.com/users/tomasklapka/orgs","repos_url":"https://api.github.com/users/tomasklapka/repos","events_url":"https://api.github.com/users/tomasklapka/events{/privacy}","received_events_url":"https://api.github.com/users/tomasklapka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-23T08:39:27Z","updated_at":"2019-04-23T08:39:27Z","closed_at":null,"author_association":"NONE","body":"I'm having issues with wcout printing special characters. See test_wcout.cpp:\r\n```C++\r\n#include <iostream>\r\n#define testdata L\"oescrzyai öěščřžýáí\"\r\nint main (int argc, char** argv) {\r\n\tsetlocale(LC_ALL, \"\");\r\n\twprintf(L\"wprintf:%ls\\n\", testdata);\r\n\tstd::wcout << L\"wcout:\" << testdata << std::endl;\r\n\treturn 0;\r\n}\r\n```\r\n\r\n```\r\n$ em++ test_wcout.cpp -o test_wcout.js && node test_wcout\r\nwprintf:oescrzyai öěščřžýáí\r\nstdio streams had content in them that was not flushed. you should set EXIT_RUNTIME to 1 (see the FAQ), or make sure to emit a newline when you printf etc.\r\n```\r\n\r\n```\r\n$ em++ test_wcout.cpp -s EXIT_RUNTIME=1 -o test_wcout.js && node test_wcout\r\nwprintf:oescrzyai öěščřžýáí\r\nwcout:oescrzyai \r\n```\r\n"}}
{"actor":{"display_login":"tomasklapka"}}