Changes between Initial Version and Version 1 of Ticket #22044, comment 21
- Timestamp:
- Dec 14, 2016, 12:34:20 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22044, comment 21
initial v1 1 > Replying to [comment:14 jdemeyer]:2 > > One particular pet peeve of mine not mentioned in that essay is `os.environ`. At the system level, that's just `char *` but Python 3 insists on interpreting these byte strings as unicode somehow.3 >4 > It's not "somehow"--it's using the `sys.getfilesystemencoding()` with surrogateescape handling, which most of the time is right. `os.environb` was introduced to read the environment directly as bytes.