From 5ac2ae511fde58abb83cbeac6fbbec11562eeaf6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Jan 2018 12:35:51 +0530 Subject: [PATCH] Also check for the C1 control chars --- setup/translations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/translations.py b/setup/translations.py index c019781d93..714d4c7c90 100644 --- a/setup/translations.py +++ b/setup/translations.py @@ -653,7 +653,7 @@ class GetTranslations(Translations): # {{{ def check_for_control_chars(f): raw = open(f, 'rb').read().decode('utf-8') - pat = re.compile(ur'[\0-\x08\x0b\x0c\x0e-\x1f\x7f]') + pat = re.compile(ur'[\0-\x08\x0b\x0c\x0e-\x1f\x7f\x80-\x9f]') errs = [] for i, line in enumerate(raw.splitlines()): if pat.search(line) is not None: