Skip to content

consider ignoring initial BOM from clients #2244

@csmith

Description

@csmith

Ergo 2.15 includes this change in irc-go which causes a parser error for any non-ASCII commands.

Some clients unwittingly send a UTF8 byte-order-mark when they open a connection, because that's a default for the language/framework/etc they use.

Technically I think it's a protocol violation, but it's a very easy footgun for client devs, quite hard to diagnose in some cases, and previously "just worked".

It might be nice if ergo stripped an initial BOM so these slightly-wonky clients carry on in blissful ignorance?

As an example, this change was made to a client after updating to ergo 2.15. In C#, System.Text.Encoding.UTF8 adds a BOM to the start of the stream, and you have to use a different magical invocation to avoid that (new UTF8Encoding(false), apparently).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions