-
-
Notifications
You must be signed in to change notification settings - Fork 743
Fix issue 1188 #789
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
Fix issue 1188 #789
Conversation
tests are failing |
This is D1 pull. Autotester tests D2 only. As you can see it tries to merge this into |
Ping. |
@WalterBright, what's wrong with this? |
{ | ||
import std.c.stddef; // wchar_t | ||
|
||
extern (Windows) void* LocalFree(void*); |
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.
Could extern(Windows)
be factored out and used as a scope here?
Could please someone with more Windows knowledge take over reviewing this diff? Thanks. |
First things first, where are the unit tests? |
To @andralex:
Factored out. To @AndrejMitrovic:
I have no experience in such kind of unittests. Show me such unittests, please (which build program, run it with arguments and test its output). |
By the way, this pull works correct on my windows system. |
Ping. |
@denis-sh: My bad, I haven't realized this is D1, not D2. |
Since this is already in druntime for D2, I see no reason to not merge this. |
Finally. Thanks a lot! |
Doesn't work. Fails the test: wc wc.d --- errorlevel 1where wc.d is: import std.file; int main (char[][] args)
} |
hmm, love the bad auto-formatting of github! |
reverted |
Use ```D for syntax highlighting of D code. Also, didn't I mention this pull needed unittests? :) |
Disagree, its rather good but you have to read how to use it once (a link at top-right corner of text box you write to). And you can use "Preview" button to see results. |
Looks like my "code duplication from druntime" message foces everybody to not look at code at all (me included). The code uses |
To @AndrejMitrovic: |
Fixes D1 only Issue 1188 - Command-line arguments are encoded in CP_ACP on Windows instead of UTF-8