-
Notifications
You must be signed in to change notification settings - Fork 256
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 UTF-16 strings cause print to crash on some backends #2925
Labels
lang: golang
Dafny's transpiler to Go and its runtime
lang: python
Dafny's Python transpiler and its runtime
part: runtime
Happens in Dafny's runtime (Add a `lang` tag if relevant)
Comments
robin-aws
added a commit
that referenced
this issue
Nov 3, 2022
…and Go (#2926) Fixes #1980. Fixes #2925. Should fix the root cause of #2934, but I'm not claiming the complete fix, as attempting to include unescaped, non-ASCII characters in a Dafny source file is revealing platform-specific headaches in the integration test runner I'd like to address in a separate PR. Printing non-ASCII characters, especially invalid UTF-16 sequences, is still inconsistent across backends, but at least should not crash after this change. Again this is difficult to test effectively across platforms in our testing architecture. <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small> Co-authored-by: Clément Pit-Claudel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
lang: golang
Dafny's transpiler to Go and its runtime
lang: python
Dafny's Python transpiler and its runtime
part: runtime
Happens in Dafny's runtime (Add a `lang` tag if relevant)
Fails to compile on Go, crashes at runtime for Python.
The text was updated successfully, but these errors were encountered: