From: Alex Morega Date: Mon, 6 Jan 2014 21:15:45 +0000 (+0200) Subject: change spelling of the encoding X-Git-Tag: 2.0~3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2af2c176b09b0fd90b91e6678e2afaf1355f838b;p=thirdparty%2Fbabel.git change spelling of the encoding Apparently jython doesn't understand "utf_8". Fixes #46. --- diff --git a/babel/util.py b/babel/util.py index f46ee2b7..a65fce36 100644 --- a/babel/util.py +++ b/babel/util.py @@ -80,7 +80,7 @@ def parse_encoding(fp): raise SyntaxError( "python refuses to compile code with both a UTF8 " "byte-order-mark and a magic encoding comment") - return 'utf_8' + return 'utf-8' elif m: return m.group(1).decode('latin-1') else: