X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=e0bdfe8412dca1f5f062ac249f16eb8714b04cec;hb=5141ab3bc7f3e8220d9d9c435bb573a90a211813;hp=b20a063a452d4e9d1354f8e4a19c519205855295;hpb=b34e1454c174ccc89f552a0871fbf18e19a01264;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index b20a063a..e0bdfe84 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -234,6 +234,10 @@ def parse_changes(filename, signing_rules=0): changes_in = open_file(filename) content = changes_in.read() changes_in.close() + try: + unicode(content, 'utf-8') + except UnicodeError: + raise ChangesUnicodeError, "Changes file not proper utf-8" return parse_deb822(content, signing_rules) ################################################################################