Skip to content

Issue with unicode parsing #674

@onionhammer

Description

@onionhammer

When I connect to leguin.freenode.net, The MOTD is coming back with

Welcome to leguin.freenode.net in Umeå, Sweden, EU! Thanks to

where the å is 229, but is instead parsed as σ, resulting in:

Welcome to leguin.freenode.net in Umeσ, Sweden, EU! Thanks to

Relevant gist:

https://gist.github.com/onionhammer/7494336

And then crashing when I serialize the message, an assert fails:

Traceback (most recent call last)

marshal.nim(239) $$

marshal.nim(57) storeAny

marshal.nim(48) storeAny

marshal.nim(88) storeAny

unicode.nim(63) escapeJson

system.nim(2549) hiddenRaiseAssert

system.nim(1836) raiseAssert

Error: unhandled exception: ord(s[i + 1]) shr 6 == 0b00000000000000000000000000000010 [EAssertionFailed]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions