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

The std and os modules do not support Unicode paths for file operations #505

Open
CenterCountryMan opened this issue Sep 7, 2024 · 1 comment

Comments

@CenterCountryMan
Copy link

The std and os modules do not support Unicode paths for file operations; if the path contains Unicode characters, the result returned is null. Additionally, the console does not support outputting Unicode content by default, which can result in garbled characters. I hope this issue can be resolved.

@bnoordhuis
Copy link
Contributor

You don't mention the OS but I'm going to guess... Windows?

std and os are mostly implemented in terms of libc/msvcrt and unicode suport in msvcrt is seriously lackluster. So, the answer to your feature request is "probably not", or we'd be reinventing libuv. See #449 for unicode console support, however.

If you're embedding quickjs and your target is windows 10, you can add an <activeCodePage>UTF-8</activeCodePage> stanza to your app's manifest. Maybe we could do that for qjs (the standalone binary) but not for quickjs the library.

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