Skip to content

Hex values in text format file cannot be parsed. Protoc-c --encode permits hex values. #10

@kinyubi

Description

@kinyubi

a message field is defined as uint32 in the .proto file. If the text format file specifies the value as 0xFFFF, the parse fails with the ProtobufCTextError error_txt field set to "Error found on line nn. field_xx is not an enum field."

When the value is specified as decimal 65535, no error occurs. This should be considered an error because protoc-c properly parses hex and decimal values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions