tll 68c28174d0 py/objstr: Add check for valid UTF-8 when making a str from bytes.
This patch adds a function utf8_check() to check for a valid UTF-8 encoded
string, and calls it when constructing a str from raw bytes.  The feature
is selectable at compile time via MICROPY_PY_BUILTINS_STR_UNICODE_CHECK and
is enabled if unicode is enabled.  It costs about 110 bytes on Thumb-2, 150
bytes on Xtensa and 170 bytes on x86-64.
2017-09-06 16:43:09 +10:00
..
2017-08-13 22:52:33 +10:00
2017-05-29 11:36:05 +03:00
2017-07-18 11:57:39 +10:00
2017-07-18 11:57:39 +10:00
2017-09-01 15:22:25 +10:00
2017-07-18 11:57:39 +10:00