Null character escape not encoded correctly in most backends #2928
Labels
lang: c++
Dafny's C++ transpiler and its runtime
lang: golang
Dafny's transpiler to Go and its runtime
lang: java
Dafny's Java transpiler and its runtime
lang: js
Dafny's JavaScript transpiler and its runtime
lang: python
Dafny's Python transpiler and its runtime
part: code-generation
Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
This program is a doozy, it ONLY runs without crashing on C#:
Most backends are not escaping the
\0
escape properly, and hence trying to interpret\03
an octal escape. Go attempts to handle this by padding to\003
which is a valid Go escape sequence, but in so doing changes the value of the string!The text was updated successfully, but these errors were encountered: