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

Osamu Aoki aoki.osamu at gmail.com
Sun Sep 24 03:18:30 UTC 2017


On Fri, Sep 22, 2017 at 09:14:22AM +0200, John Paul Adrian Glaubitz wrote:
> 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.
> 
> すごいね?
> 
> アドリアン

LGTM.

I think you are right.

Question is how to coordinate with other anthy users and the latest
ibus.

If you have time to go over all the dependency package coordination,
please go ahead start uploading patched packages. I am a bit short on
time.  I have not updated ibus to Debian.  Also, I think anthy should
have bumped library version to prevent this breakage in unstable.

But I haven't checked details.  You are welcomed to lead this task and
upload as long as you will take responsibility.

Osamu



More information about the Pkg-ime-devel mailing list