View Single Post
Old 02-15-2016, 08:34 AM   #1888
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
@knc1: It's a mess, but in this case, it's simply the fact that being headless for some reason (AFAICT, it shouldn't if the env is sane, which it is, but, hey...) broke the stdout encoding autodetection. With a tty, it correctly inherits the utf-8 from the env, without one, it defaults to none -> ascii, which breaks because the rest of the code is going to great pains to make sure everything is either an utf-8 str, or an unicode object.

(We're not alone, and Python 3 is apparently much saner (in that respect, at least))
Which is what I tried to say.
none -> ascii is correct for non-latin-1 English and wrong for Spanish.

It was just my guess about what the source of the problem was that was wrong. (not passed vs not specified).

= = = =

Meanwhile, in my own backyard - (I don't do the big snake stuff) -
You would not believe what Lab126 has done to the "standardized" extension library location(s) in their Lua install.
About the only thing the same is 'in current directory', I guess they couldn't be bothered to screw that up also.
knc1 is offline   Reply With Quote