Skip to content

Add Calendar fixes for Swift 3 #686

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

Merged
merged 2 commits into from
Oct 13, 2016
Merged

Add Calendar fixes for Swift 3 #686

merged 2 commits into from
Oct 13, 2016

Conversation

alblue
Copy link
Contributor

@alblue alblue commented Oct 13, 2016

These fix a crashing bug with Calendar when more than four instances are created and destroyed, and adds support for ISO8601 Calendars and others.

alblue and others added 2 commits October 13, 2016 08:55
The Calendar destructor releases stored values when the
Calendar is being deallocated, including releasing the localeID.

By default this is an empty string (kCFEmptyString) which results
in multiple Calendars causing a fault when it is over-released.
Ensure that instead the localeID is retained to balance the
release when it is cleaned up.

Issue: SR-2879
The list of valid keys did not include the ISO8601 calendar, which
meant that code running on Linux that used it would fail. Fix this
by adding the kCFISO8601Calendar and others into the list of known
constants valid for calendars, and add tests for the Gregorian
calendar, as well as for creating all other calendars.

Issue: SR-2551
@pushkarnk
Copy link
Member

@swift-ci please test

@parkera parkera merged commit 22c92e8 into swiftlang:swift-3.0-branch Oct 13, 2016
@alblue alblue deleted the calendar branch November 29, 2016 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants