You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/cue: import non-UTF8 Go string constants as CUE bytes
Otherwise literal.String.Quote replaces invalid UTF-8 sequences
with the replacement character \uFFFD, as can be seen by the test
failure when the fix is reverted:
> cmp decls/p_go_gen.cue decls/p_go_gen.cue.golden
diff decls/p_go_gen.cue decls/p_go_gen.cue.golden
--- decls/p_go_gen.cue
+++ decls/p_go_gen.cue.golden
@@ -21,4 +21,4 @@
#UTF8: "012" // "\x30\x31\x32"
-#NonUTF8: "a�b��c�" // "a\xffb\xC0\xAFc\xff"
+#NonUTF8: 'a\xffb\xc0\xafc\xff' // "a\xffb\xC0\xAFc\xff"
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: I36217582d6e47053d25d0a4eea7adea55b432027
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211576
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
0 commit comments