-
-
Notifications
You must be signed in to change notification settings - Fork 706
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 18801 - std.stdio.File doesn't work with MSVCRT's UTF-8 mode #6477
Conversation
| // "wide-oriented" for us. | ||
| immutable int mode = _setmode(f.fileno, _O_TEXT); | ||
| // Set some arbitrary mode to obtain the previous one. | ||
| _setmode(f.fileno, mode); // Restore previous mode. |
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.
This is a bit awkward, but I couldn't find a function that just gets the mode.
|
Thanks for your pull request and interest in making D better, @aG0aep6G! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#6477" |
f2dc502 to
d230f7c
Compare
|
I can't make sense of this. The Win64 tester apparently sees the mode as I'm open to suggestions. |
|
(rebased) |
|
Rebased properly (hopefully). I fully expect this to still fail in the same nonsensical way, though. |
7709a27 to
6854f0c
Compare
|
Looks like the new Windows testing setup turned this green. With the nonsensical failures gone, this might be good to go. There is a failure on buildkite, though: Apparently, CyberShadow/ae segfaults. I'm not sure how to address that. Is it caused by this PR? Do I need to investigate it? @CyberShadow? |
|
Sweet. All green. |
No description provided.