Skip to content

Commit f68fac7

Browse files
authored
Expose _identifierCapturingPreferences for NSLocale (swiftlang#1054)
`NSLocale` wants to use `Locale._identifierCapturingPreferences` when calling into ICU. For 55573864
1 parent ffac47b commit f68fac7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/FoundationInternationalization/Locale/Locale_ObjC.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,11 @@ internal class _NSSwiftLocale: _NSLocaleBridge, @unchecked Sendable {
508508
override func _numberingSystem() -> String! {
509509
locale.numberingSystem.identifier
510510
}
511-
511+
512+
override func _identifierCapturingPreferences() -> String {
513+
locale.identifierCapturingPreferences
514+
}
515+
512516
override func _localeWithNewCalendarIdentifier(_ calendarIdentifier: String?) -> NSLocale? {
513517
guard let calendarIdentifier else {
514518
// No real need to copy here; Locale is immutable

0 commit comments

Comments
 (0)