Hi, On Fri, Oct 27, 2017 at 04:38:08PM +0900, Takatsugu Nokubi wrote: > On Fri, 22 Sep 2017 23:20:39 +0900 Osamu Aoki <aoki.os...@gmail.com> wrote: > > On Fri, Sep 22, 2017 at 09:14:22AM +0200, John Paul Adrian Glaubitz wrote: > > > 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 think it seems right way. > > > Question is how to coordinate with other anthy users and the latest > > ibus. > > I had to see the upstream code, and the script seems not there. > https://github.com/phuang/ibus-anthy/tree/master/data > > I think we can choose the 2 ways: > > 1. just apply this patch > It seems not come from the upstream, so we don't need to take > care about it. > > 2. fix to work with both encoding zipfile > When the script get the exception, retry to open as utf-8, it may work > both version of anthy.
I think 1 should be the way to move forward. I thought about uploading ibus first but maybe I was wrong. If you have time, please upload fixed package. The only thing to do maybe adding conflict to anthy in sid 1:0.3-6 to all the older non-UTF-8 compatible IM packages of ibus-anthy uim-anthy fcitx-anthy as 1:0.3-7. Then we can make all these packages move together from sid to testing. Osamu