Skip to content

encoding/xml: Unmarshal not parsing bool, int64 properly #574

@gopherbot

Description

@gopherbot

by jackbox55:

What steps will reproduce the problem?
1. Attempt to Unmarshal a bool or an int64

What is the expected output? What do you see instead?

xml -> 28462915   -> int64 field   WORKS        (fills with 28462815)
xml -> 8322638558 -> int64 field   DOESN'T WORK (fills with 0)
xml -> false      -> bool  field   DOESN'T WORK (always true)

What is your $GOOS?  $GOARCH?
linux, 386

Which revision are you using?  (hg identify)
4714:52b6d624f245

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions