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
"What steps will reproduce the problem? What is the expected output? What do you
see instead?"
A float64 tagged as chardata gets unmarshaled just fine with no issues, however
marshaling such a thing results in empty node values:
http://play.golang.org/p/gMsuECdiFe
I'd assume that Marshal() should closely match Unmarshal()'s capabilities. Admittedly
"round-tripping" use-cases are rare, but still...
"Which compiler are you using?"
6g
"Which operating system are you using?"
Windows 7
"Which version are you using?"
1.0.3
The text was updated successfully, but these errors were encountered:
In marshal.go:
switch finfo.flags & fMode {
case fCharData:
switch vf.Kind() {
case reflect.String:
Escape(p, []byte(vf.String()))
case reflect.Slice:
if elem, ok := vf.Interface().([]byte); ok {
Escape(p, elem)
}
}
continue
The switch needs to invert all the cases that read.go's copyValue does.
by philipp.schumann:
The text was updated successfully, but these errors were encountered: