• Guido van Rossum's avatar
    When the UTF-8 conversion to Unicode fails, return an 8-bit string · 69529ad0
    Guido van Rossum yazdı
    instead.  This seems more robust than returning an Unicode string with
    some unconverted charcters in it.
    
    This still doesn't support getting truly binary data out of Tcl, since
    we look for the trailing null byte; but the old (pre-Unicode) code did
    this too, so apparently there's no need.  (Plus, I really don't feel
    like finding out how Tcl deals with this in each version.)
    69529ad0
_tkinter.c 46.9 KB