-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix CFSwiftStringGetBytes on big endian #1288
Fix CFSwiftStringGetBytes on big endian #1288
Conversation
So to be clear, this is with data that is UTF16LE on a big endian host? |
Thanks for your review. The previous 2 lines
turned the data into LE format. Maybe a better fix is to modify those 2 lines instead. I've reworked this. |
e8fc886
to
cec2156
Compare
@swift-ci please test |
Doesn't seem like the tests were kicked off. Can we please try again? Thanks. |
@swift-ci please test |
@parkera this looks good to me - WDYT? |
Is it possible to have this backported to the 4.0 branch? Is it via PR? |
Yeah, you'll have to create a new PR cherry-picking this against the swift-4.0 branch (you can cross-reference this pull request when you do). @parkera will have to explicitly approve it though. Also, I'm not sure when/if the swift-4.1 branch will pick up changes for master - if there's no further merges happening you might have to cherry-pick there as well. I'm not sure if the 4.0 branch will build another release or not though, so even if it ends up there you may find we don't build a new release with it in. However, @parkera is the one who can tell you. I'd suggest getting the PR in today, as next week is Thanksgiving week in the USA and there may be people on vacation during that week. |
Thanks @alblue. I'll try to get one in today. I saw that this commit is already in swift-4.1-branch. |
(cherry picked from commit c13b850)
I think we should focus on the Swift 4.1 branch at this time. |
We should still be auto-merging the |
This will allow
TestNSString.test_swiftStringUTF16
and a few TimeZone related test cases to pass.