diff options
author | Guido van Rossum <guido@python.org> | 2000-05-04 15:55:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-05-04 15:55:17 (GMT) |
commit | 69529ad0ccbe2fb68427de92763d7a5322b63d31 (patch) | |
tree | 9870c419770dbd395cc3391df43c1e776897ff36 /Parser/parsetok.c | |
parent | 03e29f1ae9999ae341c9f1a9c9bba15ddfa6e7b1 (diff) | |
download | cpython-69529ad0ccbe2fb68427de92763d7a5322b63d31.zip cpython-69529ad0ccbe2fb68427de92763d7a5322b63d31.tar.gz cpython-69529ad0ccbe2fb68427de92763d7a5322b63d31.tar.bz2 |
When the UTF-8 conversion to Unicode fails, return an 8-bit string
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.)
Diffstat (limited to 'Parser/parsetok.c')
0 files changed, 0 insertions, 0 deletions