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

Fix iOS17 bug where encoding buffer does not include newline character #280

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

jim-at-jibba
Copy link
Contributor

In iOS17 and seemly silent change has occurred where utf encoded strings with newline characters are correctly encoded. This means that the default delimiter of a new line character does not get picked up in the read function and so no message is returned.

This PR changed the default encoding to nonLossyASCII

@kenjdavidson
Copy link
Owner

kenjdavidson commented Nov 21, 2023

Hey sorry, can you add in to the DOCS that this change was made?

  • Home page
  • IOS docs page

can probably have the same blockquote, which can pretty much bee your comment from this PR? Maybe add in a link to the Encoding https://developer.apple.com/documentation/swift/string/encoding/nonlossyascii

They've both been in there since 8.0, which means I just didn't realize this was the right default to continue using \n characters :( and then finally in IOS17 they ninja fixed like you said.

image
image

@jim-at-jibba
Copy link
Contributor Author

Hey sure. I have added some docs. I hope this is what you were after. Happy to make any changes.

@kenjdavidson
Copy link
Owner

Legit enough for me, any other issues are future Ken's problem.

@kenjdavidson kenjdavidson merged commit 47e3113 into kenjdavidson:main Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants