Changes between Initial Version and Version 1 of Ticket #22044, comment 21


Ignore:
Timestamp:
12/14/16 12:34:20 (3 years ago)
Author:
embray
Comment:

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.