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
On Windows, improve handling of Unicode in command line arguments and environment strings #528
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f5bfdcd
Remove attempt to transcode from ANSI to UTF-8
nanis ecca098
On Windows, create UTF-8 encoded argv upon program entry
nanis 8e1ae47
On Windows, populate environment hash from Unicode environment
nanis 3354962
Accidentally broke *nix builds with 8e1ae47a6e. Fix that.
nanis f94085a
Spelling error was hiding incorrect and unneeded declaration of _wenv…
nanis 6ebfd68
gcc complained about missing const
nanis e7c14a3
On Windows with MinGW toolchain, add -municode as late as possible
nanis e162cc1
gcc kept complaining about the `const`s, remove them
nanis 1c77b94
Adding -municode indiscriminately to ldflags caused minilua build to …
nanis b8e8081
Add -municode only when linking moar.exe
nanis 8bd00b8
Avoid namespace pollution as requested by @jnthn
nanis File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MVM_PUBLIC
is not needed here, since it won't be used out of moarvm. :)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first I did not have
MVM_PUBLIC
, but thenlink
failed. Maybe it is an issue with the ordering of filenames.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's needed because it's being called from
main.c
, which is an executable that dynamically links againstmoar.dll
. We can mark itMVM_PUBLIC
, but in that case must also follow the naming convention of having anMVM_
prefix, so we don't cause namespace pollution and make problems for anyone embedding MoarVM. Also I suggest it also be added toprocops.h
, which will eliminate the need for the decl inmain.c
.