Skip to content
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

[SR-8448] swift-corelibs-foundation: Locale/NSLocale don't hash correctly #3654

Closed
lorentey opened this issue Aug 2, 2018 · 1 comment
Closed
Assignees

Comments

@lorentey
Copy link
Member

lorentey commented Aug 2, 2018

Previous ID SR-8448
Radar None
Original Reporter @lorentey
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @lorentey
Priority Medium

md5: 334e65537df53b1cc9afc1288d1167d6

Issue Description:

NSLocale inherits hash from NSObject, but overrides isEqual: to compare locale identifiers. This also breaks hashing for Locale, which calls into NSLocale.hash.

@lorentey
Copy link
Member Author

lorentey commented Aug 2, 2018

PR with fix is at #1647

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant