-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[4.2] SR-1464: NSNumber.description is not compatible between OS X and linux #1929
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
Conversation
- Use Swift's stringification of numbers for .description and .stringValue - Use String(format:locale:...) with the correct format for the NSNumber type if locale is not nil. - Enable use of __CFStringFormatLocalizedNumber() on DEPLOYMENT_TARGET_LINUX. (cherry picked from commit 6450221)
(cherry picked from commit 7cb608f)
@swift-ci test 4.2 |
As reported in https://bugs.swift.org/browse/SR-9985 since the addition of this PR |
@futurejones thanks for reporting! So this PR passed all the tests here, are the ones you mention disabled? Could this (on swift5) maybe be an artefact of vendoring ICU on Swift 5? We definitely need to sort this out before releasing. @spevans / @kevints you know more about the ICU interactions here. Any insight? |
Its odd that the swift-5.0-branch fails because none of the differences between 5.0 and master should matter. Also @futurejones tested 5.0 with #1866 which is a specific check for ICU >= 61, which is the only thing that could possibly make any difference so I cant see why that would fail either. Ubuntu18 comes with ICU60 so it must be getting built. |
@weissi These 2 tests |
To clarify these tests were passing on a build done from the swift-4.2-branch on 2019-02-21.
|
@weissi I think we should revert this one for now. I cant work out why it is breaking but it could just be an arm specific build issue. However the |
thanks for looking into this @spevans . |
Further testing found that the fix for |
Use Swift's stringification of numbers for .description and .stringValue
Use String(format:locale:...) with the correct format for the
NSNumber type if locale is not nil.
Enable use of __CFStringFormatLocalizedNumber() on
DEPLOYMENT_TARGET_LINUX.
(cherry picked from commit 6450221)
(cherry picked from commit 7cb608f)