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-8869] NSLocalizedString does not work with .stringsdict on Linux #3626

Open
swift-ci opened this issue Sep 27, 2018 · 1 comment
Open

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-8869
Radar None
Original Reporter Momo (JIRA User)
Type Bug

Attachment: Download

Environment

Ubuntu Bionics with Swift 4.2

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 7296fb981847b28e625d1dbaafe4fe89

Issue Description:

As the title says, NSLocalizedString does not work with .stringsdict on Linux.

See this code for reproduction.

https://github.com/viltit/NSLocalizedString

If you run the the code with strace, you will notice that the .stringsdict file gets opend and read by the system, but the output of the code is the still the unformatted string.

On Apple, the code works as expected, so this seems to be a Linux-only issue.

@swift-ci
Copy link
Contributor Author

Comment by Maik Koslowski (JIRA)

I can confirm this bug on the latest Swift version on unix systems. Running any code that tries to use a .stringsdict will result in a Segmentation Fault.

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