ExpHP / truth

a multipass compiler for Touhou modding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect to assume users can do '> output.txt' and get a UTF-8 file

ExpHP opened this issue · comments

Currently you are expected to use output redirection when decompiling, but on some platforms (most notably Windows), STDOUT may be a text stream rather than a byte stream, and so the actual encoding of the created file may depend on the system configuration. This is undesirable as truth requires UTF-8, and it can lead to nasty problems with trumsg.

Instead, decompilation should have an -o/--output flag so that truth can directly write to an output file.

This is already implemented on main, but a new release should be put out ASAP. (or backport it)

Forgot to close this in 93b9852