-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Added code to detect UTF32 files for NSString contentsOfURL:usedEncoding #928
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -462,6 +462,8 @@ | |
'TestFoundation/Resources/NSStringTestData.txt', | ||
'TestFoundation/Resources/NSString-UTF16-BE-data.txt', | ||
'TestFoundation/Resources/NSString-UTF16-LE-data.txt', | ||
'TestFoundation/Resources/NSString-UTF32-BE-data.txt', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are these files missing from the commit? I don't see them currently on master There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They're actually there. Because these files have BOM in them, Github is detecting them to be binary files. If you go ahead and click on "Files Changed" above, you would see them listed as binary files.. |
||
'TestFoundation/Resources/NSString-UTF32-LE-data.txt', | ||
'TestFoundation/Resources/NSXMLDocumentTestData.xml', | ||
'TestFoundation/Resources/PropertyList-1.0.dtd', | ||
'TestFoundation/Resources/NSXMLDTDTestData.xml', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these pass on macOS using the system Foundation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mohitathwani can you double check on this part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@parkera @phausler I just tested this on MacOS... The tests are passing...