freebsd-ports/deskutils/foliate/files/patch-src_assets_KindleUnpack_kindleunpack.py
Santhosh Raju f53f8bdb4e Add deskutils/foliate 1.5.3.
Foliate is a simple and modern GTK eBook viewer, built with GJS and
Epub.js.

WWW: https://johnfactotum.github.io/foliate/

Approved by:	philip (mentor)
2019-10-15 15:04:13 +00:00

16 lines
1,003 B
Python

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")