Skip to content

Misinformation in the FS.init() docsΒ #17117

Open
@sgbeal

Description

@sgbeal

The FS.init() docs at:

https://emscripten.org/docs/api_reference/Filesystem-API.html#FS.init

say that the input proxy function "should return an ASCII character code..." and that the output proxies "will be called with an ASCII character code whenever the program writes..."

That cannot possibly be correct: ASCII is limited to the range 0-127, inclusive, and emscripten-compiled binaries have no problems outputting non-ASCII UTF-8 characters (e.g. emoji), all of which have bit 8 set (and are thus greater than 127).

Presumably the intent of those docs is that the functions must return an integer in the range 0..255, inclusive?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions