[go: nahoru, domu]

Skip to content
New issue

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

wcout on emscripten build can result in non working wcout #1003

Open
RomainCendre opened this issue Mar 18, 2022 · 1 comment
Open

wcout on emscripten build can result in non working wcout #1003

RomainCendre opened this issue Mar 18, 2022 · 1 comment

Comments

@RomainCendre
Copy link

Hello everyone,
I'm currently working with commit [80fbb10]. I'm using std::wcout ad debug of c++ instruction. And as a french I'm facing an issue with it, we have some "nice" characters like é or è, that seem to mess with std::wcout output. When one of them is used with std::wcout, no more logs are output from the web browser. Any ideas? I start using std::cout and convert my wstring to string but it's really convenient.

Thanks a lot!

@sbc100
Copy link
Collaborator
sbc100 commented Mar 18, 2022

Sounds like something that probably never got tested.

Can you give us some more details? How/where are you viewing the output? Are you using the standard shell.html provided by emscripten? Or are you using the devtools console maybe?

Can you using std::cout with UTF-8 strings? Is there any downside to use using UTF-8? How are you generating your wide strings? Can you give an example of the what the source code might look like? A full example that fails would be great.

cheers,
sam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants