]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
change spelling of the encoding
authorAlex Morega <alex@grep.ro>
Mon, 6 Jan 2014 21:15:45 +0000 (23:15 +0200)
committerAlex Morega <alex@grep.ro>
Mon, 6 Jan 2014 21:15:45 +0000 (23:15 +0200)
Apparently jython doesn't understand "utf_8". Fixes #46.

babel/util.py

index f46ee2b7073e1d403dafcf32f49116d1affcd601..a65fce36e3169d772a29c0951db49ede48564530 100644 (file)
@@ -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: