• Victor Stinner's avatar
    Issue #9542: Create PyUnicode_FSDecoder() function · 47fcb5b4
    Victor Stinner authored
    It's a ParseTuple converter: decode bytes objects to unicode using
    PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is.
    
     * Don't specify surrogateescape error handler in the comments nor the
       documentation, but PyUnicode_DecodeFSDefaultAndSize() and
       PyUnicode_EncodeFSDefault() because these functions use strict error handler
       for the mbcs encoding (on Windows).
     * Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid
       inconsistency with unicodeobject.h.
    47fcb5b4
unicodeobject.h 59.4 KB