Closed TheTechmage closed 11 years ago
Not sure what you're expecting. afaik, the server's stdin accepts colour codes as U+00A7, which cannot be represented in ascii. Why are you setting your character set to ascii?
As I said before, I wasn't setting the locale. My OS was doing that for me. As soon as I set my /etc/locale.conf to LANG=en_US.UTF-8
, it was able to send the sectional symbol across. I think that if the preferred locale is somehow set to something like ascii, then the sectional symbol (and the following char) should be stripped so the plugin (mumble in my case) will still function. I may fork this repo and fix a few of the bugs that I find, but I'm not sure if that will get in the way of any re-factoring that may be taking place. =P
Sorry for the late reply. I'll work on this today - I think the solution is probably to strip colour codes + unicode in general in process.py.
Should be fixed, please confirm? Mark2 won't translate & to U+00A7 anymore, and it also shouldn't error horrible when it encounters any other character it can't encode.
Just updated, then I found out that colors doesn't work no matter what now (I assume this is because of commit 8492fa2). Either way, it doesn't really seem to crash now (Although it hangs when I stuff the paragraph symbol in the config, but that'd be another ticket).
If you don't mind me asking, where did you find the info related to MC 1.6?
I've since set a valid local (en_US.UTF-8) in /etc/locale.conf instead of letting the system set it for me (C). Sadly, all color strings will break if the encode is set to Ascii and not UTF-8.