-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Invalid UTF8 strings can be created but not displayed on the repl? #11744
Comments
Basically a dup of #1792. We are fairly saturated with issues about when to validate text encodings. As it stands, this behavior makes sense to me: you can store invalid data in a UTF8String, but operations on it might have undefined behavior. |
Thanks, makes sense. |
Sorry, but I'd disagree on that, @JeffBezanson... I still think that if you want to store invalid data, it should be to a |
@JeffBezanson That comment sounds in opposition with what you said in #1792. I agree that the current situation has some consistency, but as you argued there ensuring that strings are valid in some future version would allow for performance improvements and prevents bugs. |
Puzzled by this:
The text was updated successfully, but these errors were encountered: