diff options
author | Santhosh Raju <fox@FreeBSD.org> | 2019-10-15 15:04:13 +0000 |
---|---|---|
committer | Santhosh Raju <fox@FreeBSD.org> | 2019-10-15 15:04:13 +0000 |
commit | f53f8bdb4ee47eb2f1c61af90f5083918fc1ddc5 (patch) | |
tree | e39ec7a9a34823ae793b0078e4e5007e89b52575 /deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py | |
parent | f8123be2d727df29f6bca1150538435f31ceda66 (diff) |
Notes
Diffstat (limited to 'deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py')
-rw-r--r-- | deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py b/deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py new file mode 100644 index 000000000000..ba783bb90cab --- /dev/null +++ b/deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py @@ -0,0 +1,16 @@ +Fixes unicode display correctly, this prevents crashing on opening +(kindle format files). + +--- src/assets/KindleUnpack/kindleunpack.py.orig 2019-10-07 19:55:37 UTC ++++ 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 <root@ihack.net>") +- print(" Extensive Extensions and Improvements Copyright © 2009-2014 ") ++ print(" Based on initial mobipocket version Copyright © 2009 Charles M. Hannum <root@ihack.net>".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") |