Re:Announcing Rust 1.0 Beta
by Veedrac on Friday April 03, 2015 @04:26PM
(#9318273)
The problem there is overblown - it's basically all due to the idea that sys.stdin or sys.stdout might get replaced with streams that don't have a binary buffer. The simple solution is just not to do that (and it's pretty easy; instead of replacing with a StringIO, replace it with a wrapped binary buffer). Then the code is quite simple
Python's surrogateescape'd strings aren't the best solution, but I personally believe that treating unicode output streams as binary ones is even worse.
[ Parent
| on HN ]
There are no comments on this comment yet.