Skip to content

Problem with encoding #9

@stasoid

Description

@stasoid

If file contains UTF-8 multibyte characters Hexagony behaves differently on Linux and Windows because default encoding on Linux is UTF-8, and on Windows it's something else.

On Linux it treats those characters atomically, on Windows each byte is treated separately.

As I/O is done byte-wise I assume interpreter on Linux behaves not as intended.

It can be fixed by reading in binary mode, something like File.open(ARGV[0],"rb").read instead of ARGF.read in interpreter.rb.

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