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
i expected to see "\f" ( or maybe something in the documentation on what it escapes, and why. )
json supports escapes using: 'b', 'f', 'n', 'r', 't' -- but while appendString() in src/encoding/json/encode.go generates '\b', '\n', '\r', and '\t' -- it doesn't have handling for '\f'.
package fmt, and package strconv both generate "\f" when quoting 0xc.
What did you see instead?
marshal generates \u000c which -- while perfectly functional -- is unexpected
The text was updated successfully, but these errors were encountered:
Newer versions of Go emit '\f' rather than "\u000c" for formfeeds. This
patch adjusts the expected values for the lexers tests to match.
Fixes: alecthomas#927
See also: golang/go#64346 for the change to
Go.
Signed-off-by: W. Michael Petullo <mike@flyn.org>
Newer versions of Go emit '\f' rather than "\u000c" for formfeeds. This
patch adjusts the expected values for the lexers tests to match.
Fixes: #927
See also: golang/go#64346 for the change to
Go.
Signed-off-by: W. Michael Petullo <mike@flyn.org>
Go version
go version go1.21.4 darwin/amd64
Reproducibility
What operating system and processor architecture are you using (
go env
)?What did you do?
https://play.golang.com/p/vbRfDhCj4DX
What did you expect to see?
i expected to see "\f" ( or maybe something in the documentation on what it escapes, and why. )
json supports escapes using: 'b', 'f', 'n', 'r', 't' -- but while appendString() in
src/encoding/json/encode.go
generates '\b', '\n', '\r', and '\t' -- it doesn't have handling for '\f'.package fmt, and package strconv both generate "\f" when quoting 0xc.
What did you see instead?
marshal generates
\u000c
which -- while perfectly functional -- is unexpectedThe text was updated successfully, but these errors were encountered: