[pkg-anthy-devel] Bug#873860: ibus-anthy FTBFS: UnicodeDecodeError: 'euc_jp' codec can't decode byte 0xe5 in position 46: illegal multibyte sequence

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Fri Sep 22 07:14:22 UTC 2017


Source: ibus-anthy
Version: 1.5.9-2
Followup-For: Bug #873860

Hola!

This FTBFS can be easily fixed with:

--- ibus-anthy-1.5.9.orig/data/zipcode-textdic.py
+++ ibus-anthy-1.5.9/data/zipcode-textdic.py
@@ -21,7 +21,7 @@ if len(sys.argv) < 2:
 anthy_zipfile = sys.argv[1]
 
 try:
-    contents = codecs.open(anthy_zipfile, 'r', 'euc_jp').read()
+    contents = codecs.open(anthy_zipfile, 'r', 'utf-8').read()
 except UnicodeDecodeError as e:
     print('Your file is not eucJP? %s' % anthy_zipfile, file=sys.stderr)
     contents = open(anthy_zipfile).read()

I don't know whether it has any other ramifications but after
applying the patch, ibus-anthy builds fine again and I can even
type Japanese again.

すごいね?

アドリアン

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


More information about the Pkg-anthy-devel mailing list