-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Switch to using unicode when parsing the command line on windows #7241
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
Conversation
The tests are failing because |
Co-authored-by: LemonBoy <[email protected]>
Changes are applied. Looks like the W functions should give you back little endian codepoints. MS has AFAIK never released a version of windows that runs on big endian so I don't care but doing the fixup should be really inexpensive or free and really who puts argument parsing on the fast path anyways. Also we can just run the tests on any given machine and you'll know if you broke it. |
Tests are still failing because
UTF-16 or UCS-2 ?
That's a great argument, I like it 👍
The lowercase |
I wrote that early in the morning and now it's making me sad.
It's definitely UTF-16. I crawled through MSDN to check. Frankly though they can't port to a big endian architecture without either breaking the people who assumed little endian architecture (given I just did I can't blame them) and people who actually do the fixup on big endian architectures. Hopefully enough people were like "I'll just use a library" and the library did the right thing so that MS can keep it's word without too much pain. |
Where/how? MSDN usually fails to note that when they say UTF-16 they really mean UCS-2. |
It says utf-16 in the link I posted
…-------- Original Message --------
On Nov 28, 2020, 6:26 PM, daurnimator wrote:
> It's definitely UTF-16. I crawled through MSDN to check
Where/how? MSDN usually fails to note that when they say UTF-16 they really mean UCS-2.
—
You are receiving this because you authored the thread.
Reply to this email directly, [view it on GitHub](#7241 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACC47ZJO6WFSJREUDEPR4CDSSGILVANCNFSM4UFOMV7Q).
|
Thanks! |
This should help out with issue #534. Just using GetCommandLineW and then adding in some fixups to make it compile, return utf8 still, and make the tests pass.