External Publication
Visit Post

Platform Development • Re: I created a Python 3 port of UXP out of boredom...

Pale Moon forum - Forum index [Unofficial] April 6, 2026
Source

So, I was trying to look into the foreign text display issues before I realized there were more pressing Linux issues that have to be dealt with first...

https://repo.palemoon.org/athenian200/U ... experiment

I experimented with a Windows function called GetConsoleOutputCP... the reason I zeroed in on it, is because that's what MSVC's cl and link use to determine their own output encoding, and not GetACP which is what Python and some other tools seem to trust instead. The catch... is that you have to be careful of environment variables getting pulled in as the wrong encoding and breaking things, but really in most cases it's better to rely on file I/O on Windows rather than trust the integrity of an environment variable in situations where you need tight control of the encoding or byte-level representation.

I... think I got carried away with this because I was still in "hunt through the build system's guts and carefully change big things" mode rather than "practical fix" mode mentally, and possibly took it further than would be practical to upstream, but at the very least I think the patch existing for people to play around with as an alternative to trying to make the console match their system ANSI encoding won't hurt anything.

In any case, this hasn't seen a lot of testing and may take me a while to get back to if anyone is interested or runs into issues with it. Seriously, I should get my mind refocused in a more useful direction... messing with the build system too much has made me feel something like the programming equivalent of those people who play too much Tetris and start seeing falling blocks in their dreams, only with me it's old Mozilla code and the flow of the build system now...


Discussion in the ATmosphere

Loading comments...