$NetBSD: patch-src_assets_KindleUnpack_kindleunpack.py,v 1.1 2019/10/12 13:45:20 fox Exp $ Fixes unicode display correctly, this prevents crashing on opening (kindle format files). --- src/assets/KindleUnpack/kindleunpack.py.orig 2019-10-07 20:49:16.446537408 +0000 +++ src/assets/KindleUnpack/kindleunpack.py @@ -952,8 +952,8 @@ def main(argv=unicode_argv()): global SPLIT_COMBO_MOBIS print("KindleUnpack v0.82") - print(" Based on initial mobipocket version Copyright © 2009 Charles M. Hannum ") - print(" Extensive Extensions and Improvements Copyright © 2009-2014 ") + print(" Based on initial mobipocket version Copyright © 2009 Charles M. Hannum ".encode("utf-8")) + print(" Extensive Extensions and Improvements Copyright © 2009-2014 ".encode("utf-8")) print(" by: P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding, tkeo.") print(" This program is free software: you can redistribute it and/or modify") print(" it under the terms of the GNU General Public License as published by")