Skip to content

Error in extra/python/XSVFDisassembler.py #6

@jyang669

Description

@jyang669

I used the suggested way to test the XSVFAssembler and Disasembler using the xsvf_example inside the XSVFParser. The result seems to be wrong.

The problem is that the assembler turns a byte into character using UTF-8 encoding. When Disassembler reads the file, it reads a byte at a time. However, UTF-8 encoding results 2 bytes for code points >128. So the disassembler reads the wrong character by only taking one byte at a time. I am not sure the same problem exist in the main XSVFDecoder inside the /src.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions