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 don't think export data should be affected by changing how fmt.go prints rune literals. fmt.go hasn't been involved in the export data format since the introduction of bexport.
We should certainly escape characters correctly though. Maybe we can just use %q for printing rune values less than 128: https://play.golang.org/p/MZ6CoEORrZN
Activity
cuonglm commentedon Jan 19, 2021
Seems if we make it to print the rune literal, export will be broken https://codereview.appspot.com/5472046.
Although even without that special condition, we will say
\, not\\.mdempsky commentedon Jan 19, 2021
I don't think export data should be affected by changing how fmt.go prints rune literals. fmt.go hasn't been involved in the export data format since the introduction of bexport.
We should certainly escape characters correctly though. Maybe we can just use
%qfor printing rune values less than 128: https://play.golang.org/p/MZ6CoEORrZNgopherbot commentedon Jan 19, 2021
Change https://golang.org/cl/284592 mentions this issue:
[dev.regabi] cmd/compile: use '%q' for printing rune values less than 128[dev.regabi] cmd/compile: use '%q' for printing rune values less than…
mdempsky commentedon Jan 19, 2021
This is fixed on dev.regabi.