]> git.neil.brown.name Git - edlib.git/commit
python: handle bad utf-8 in string conversion.
authorNeilBrown <neil@brown.name>
Wed, 15 Feb 2023 02:50:48 +0000 (13:50 +1100)
committerNeilBrown <neil@brown.name>
Wed, 15 Feb 2023 02:50:48 +0000 (13:50 +1100)
commit01c6f556fdfc64ddcdb7bd71f63f4895e9ac65d4
tree5279e2543ea60ea8df1ea9ae6dc878ce6ea5e694
parentfffa54112b3bbc85af7dd288eb5e09be34530921
python: handle bad utf-8 in string conversion.

If a string contains bad utf-8, treat it as 8bit ascii.

Also handle failure from python_string() correctly.

Signed-off-by: NeilBrown <neil@brown.name>
lang-python.c