Skip to content

Comments

Fix issue 17801: DateTime.fromISOExtString no longer works with const strings.#5721

Merged
dlang-bot merged 1 commit intodlang:stablefrom
jmdavis:issue_17801
Sep 5, 2017
Merged

Fix issue 17801: DateTime.fromISOExtString no longer works with const strings.#5721
dlang-bot merged 1 commit intodlang:stablefrom
jmdavis:issue_17801

Conversation

@jmdavis
Copy link
Member

@jmdavis jmdavis commented Sep 3, 2017

The fromString functions in std.datetime did not have tests to make
sure that they worked with various character types or various levels of
constness, and some optimizations that were done to the from
String
functions on DateTime for 2.076 broke them for const strings. So, this
adds tests for all character types and levels of constness to each of
the from*String function in std.datetime, and fixes the functionality
for DateTime that then doesn't pass the tests.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @jmdavis!

Bugzilla references

Auto-close Bugzilla Description
17801 Date.fromISOExtString broken in 2.076 because of changed type specifier

… strings.

The from*String functions in std.datetime did not have tests to make
sure that they worked with various character types or various levels of
constness, and some optimizations that were done to the from*String
functions on DateTime for 2.076 broke them for const strings. So, this
adds tests for all character types and levels of constness to each of
the from*String function in std.datetime, and fixes the functionality
for DateTime that then doesn't pass the tests.
@PetarKirov
Copy link
Member

Closing & reopening to restart DAutoTest.

@PetarKirov PetarKirov reopened this Sep 3, 2017
@dlang-bot dlang-bot merged commit 67e66d2 into dlang:stable Sep 5, 2017
@uranuz
Copy link
Contributor

uranuz commented Sep 5, 2017

Big thanks with this

@jmdavis jmdavis deleted the issue_17801 branch January 28, 2018 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants