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-3202] Some of properties of Locale.current object are not filled on Linux #4502

Closed
swift-ci opened this issue Nov 14, 2016 · 4 comments
Closed

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-3202
Radar None
Original Reporter rbukovansky (JIRA User)
Type Bug
Status Resolved
Resolution Cannot Reproduce
Environment

OS: Ubuntu 16.10
Swift 3.0, Swift 3.0.1, Swift DEV SNAPSHOT 2016-11-11

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Linux
Assignee saiHema (JIRA)
Priority Medium

md5: b1bab6d492aa2081a4d6d1d00d8839e0

Issue Description:

These following 4 lines return nil on my Ubuntu 16.10. Is there any reason, please? Thanks.

print("Language = \(String(describing: Locale.current.languageCode))")
print("Locale = \(String(describing: Locale.current.collatorIdentifier))")
print("Language = \(String(describing: NSLocale.current.languageCode))")
print("Locale = \(String(describing: NSLocale.current.collatorIdentifier))")
Language = nil
Locale = nil
Language = nil
Locale = nil
@swift-ci
Copy link
Contributor Author

swift-ci commented Apr 7, 2017

Comment by Karl Weinmeister (JIRA)

A couple of the formatters that have different behavior based on the current locale had to work around this issue. When this issue is resolved, those workarounds should be removed. For example, see the bottom of: https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/NSEnergyFormatter.swift

@swift-ci
Copy link
Contributor Author

Comment by W S (JIRA)

I believe the properties above have been fixed by saiHema (JIRA User) #1020

@swift-ci
Copy link
Contributor Author

Comment by sai Hema k (JIRA)

rbukovansky (JIRA User) : The issue is fixed in the latest master.Can you please verify and close it ?

@swift-ci
Copy link
Contributor Author

Comment by Matt Rajca (JIRA)

Looks fixed in Swift 4.0.3 on Linux.

@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