-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Enable Time::Location loader on win32 #6363
Merged
RX14
merged 5 commits into
crystal-lang:master
from
straight-shoota:jm/fix/time-enable-win
Aug 31, 2018
Merged
Enable Time::Location loader on win32 #6363
RX14
merged 5 commits into
crystal-lang:master
from
straight-shoota:jm/fix/time-enable-win
Aug 31, 2018
Conversation
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
With File support for win32, the POSIX implementations work on win32 as well.
straight-shoota
changed the title
Enable Time::Location features on win32
Enable Time::Location loader on win32
Jul 10, 2018
RX14
approved these changes
Jul 11, 2018
Replace File.expand_path with File.join to work on win32
RX14
approved these changes
Jul 11, 2018
RX14
added
kind:feature
platform:windows
Windows support based on the MSVC toolchain / Win32 API
topic:stdlib
labels
Aug 3, 2018
asterite
approved these changes
Aug 30, 2018
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.
I didn't try this on Windows, but I trust @RX14 and @straight-shoota if they tested it.
ysbaddaden
approved these changes
Aug 31, 2018
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.
Looks good. Feel free to merge when ready (or is it?).
ezrast
pushed a commit
to ezrast/crystal
that referenced
this pull request
Oct 2, 2018
* Enable Time::Location loader on win32 With File support for win32, the POSIX implementations work on win32 as well. * Add missing with_zoneinfo in Time spec * Fix Time::Location.load_local with TZ and ZONEINFO * fixup! Enable Time::Location loader on win32 Replace File.expand_path with File.join to work on win32 * fixup! Add missing with_zoneinfo in Time spec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
With #5623 merged, the location loader methods can finally use the
File
API on win32.I also fixed a few missing
with_zoneinfo
.The spec withENV["TZ"] = ""
doesn't work on win32 because empty string is identified asnil
(see #6333 (comment)).