Fix issue 11000#11001
Conversation
|
Thanks for your pull request and interest in making D better, @dukc! 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 referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
|
8be906a to
e43c39a
Compare
|
Is it reasonably possible to add a unittest for this? |
It is not going to be a real unit test since it will have to set the environment variable, on top of But apart from that. I can do it. After all, it's the |
With the default TZDatabaseDir values, time zones work as designed. However, if one has TZDIR environment variable set without a trailing slash, PosixTimeZone.getInstalledTZNames will turn the time zone names into nonexistent absolute paths, such as /Europe/Rome, failing the test suite.
This should fix it. Also updated an on-site comment a bit while there.
This is #10999 but with a different commit message. I didn't want to edit the commit message in original branch because I have already used the hash of that commit elsewhere.