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

unicode file name is not supported on Windows system #371

Open
DailyShana opened this issue Mar 6, 2023 · 1 comment
Open

unicode file name is not supported on Windows system #371

DailyShana opened this issue Mar 6, 2023 · 1 comment
Assignees

Comments

@DailyShana
Copy link

there are severel ways to solve it.

method 1: using wmain to get correct file name (wchar_t* argv[]) which is encoded in utf16, then transform it to utf8.
ref: https://learn.microsoft.com/en-us/cpp/c-language/using-wmain?view=msvc-170

method 2: using CommandLineToArgvW with GetCommandLineW to get file name which is encoded in utf16, then transform it to utf8.
ref: https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw

@jamievlin
Copy link
Member

As of the moment, the master branch is built with linux in mind and Windows is ported using Cygwin. Right now, I am proprosing a re-port of Asymptote built with Windows API (with clang64 compiler) without Cygwin. This should enable a fix if my re-port is merged in (see https://github.com/jamievlin/asymptote/tree/clang64-msys2-win-support)

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

3 participants