3 ms·
> I'm just a happy little Python developer for Unix, and I think I'll stay that way. I assume you haven’t supported a twenty-year-old website entirely encoded
by mananaysiempre 3y ago
> I'm just a happy little Python developer for Unix, and I think I'll stay that way.
I assume you haven’t supported a twenty-year-old website entirely encoded in KOI8-R—the ability to occasionally just set LC_ALL=ru_RU.KOI8-R can be invaluable, and the same caveats would apply there.
Granted, I don’t think modern Python versions will even run properly by default under such conditions. (ETA: Ah, no, I was thinking about PEP 528 and 529, and those only apply to Windows. So dunno.)
- eesmith 3y agoNope! Happy little me pretty much only needs to deal with monolingual English, and prices in £ and €. Verifying your "Ah, no" on a Mac: % python3.11 >>> print("\N{CYRILLIC CAPITAL LETTER SHORT I}") Й >>> ^D % env LC_ALL=ru_RU.KOI8-R python3.11 >>> print("\N{CYRILLIC CAPITAL LETTER SHORT I}") � >>> ^D Going to make some happy little clouds now. :)
- mananaysiempre 3y agoTo be entirely fair, that’s a different problem: just because you launched something with a KOI8-R locale inside your terminal emulator doesn’t mean the emulator itself stopped expecting UTF-8. (I mean, it didn’t change its UI language to Russian either, did it?) If you use luit -encoding koi8-r env LC_ALL=ru_RU.KOI8-R python3.11 instead, for example, things do work out on my Linux machine, so apparently I was wrong as far as Unix versions of Python go.
- keithalewis 3y agoIf English was good enough for Jesus Christ, it's good enough for me. (/s of course)
- eesmith 3y agoBut Jesus required more than ASCII! According to the divinely inspired translators of the 1611 King James Bible ("the Only True Bible"), John 3:16, from https://archive.org/details/1611-the-authorized-king-james-bible/page/n1321/mode/2up https://archive.org/details/1611-the-authorized-king-james-b... , is: 𝔉𝔬𝔯 𝔊𝔬𝔡 ſ𝔬 𝔩𝔬𝔳𝔢𝔡 𝔶ͤ 𝔴𝔬𝔯𝔩𝔡,𝔱𝔥𝔞𝔱 𝔥𝔢 𝔤𝔞𝔲𝔢 𝔥𝔦𝔰 𝔬𝔫𝔩𝔶 𝔟𝔢𝔤𝔬𝔱𝔱𝔢𝔫 𝔖𝔬𝔫𝔫𝔢: 𝔱𝔥𝔞𝔱 𝔴𝔥𝔬ſ𝔬𝔢𝔲𝔢𝔯 𝔟𝔢𝔩𝔢𝔢𝔲𝔢𝔱𝔥 𝔦𝔫 𝔥𝔦𝔪 , ſ𝔥𝔬𝔲𝔩𝔡 𝔫𝔬𝔱 𝔭𝔢𝔯𝔦ſ𝔥, 𝔟𝔲𝔱 𝔥𝔞𝔳𝔢 𝔢𝔲𝔢𝔯𝔩𝔞𝔰𝔱𝔦𝔫𝔤 𝔩𝔦𝔣𝔢. ASCII can't represent the yͤ shorthand for "the", nor the long-s that Jesus used. /s