Skip to content

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

@lorentey

Description

@lorentey
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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions