I'm getting an odd little crash out of version 0.80. When I run kindleunpack.py from the command-line without redirecting output to a standard port or file this happens:
Spoiler:
C:\Temp\KU080>python lib\kindleunpack.py -h
KindleUnpack v0.80
Traceback (most recent call last):
File "lib\kindleunpack.py", line 1016, in <module>
sys.exit(main())
File "lib\kindleunpack.py", line 951, in main
print(" Based on initial mobipocket version Copyright © 2009 Charles M. H
annum <root@ihack.net>")
File "C:\Python27\lib\codecs.py", line 357, in write
data, consumed = self.encode(object, self.errors)
File "C:\Python27\lib\encodings\cp437.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\xa9' in position 4
9: character maps to <undefined>
The crash occurs regardless of command-line switches used.
When I redirect output: "python lib\kindleunpack.py -h >log.txt" kindleunpack.py executes correctly.
Version 0.77 works fine on my box in both the above cases.
I'm running Win8.1 64bit and tried both current ActivePython & Python.org v2.x & v3.x 32&64bit pythons with v0.80 - no joy.
No worries though, I've got my workaround for now.