Thread: Gutenberg_DE
View Single Post
Old 10-27-2008, 09:13 PM   #12
ksiflhjla8
Connoisseur
ksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blue
 
Posts: 59
Karma: 13124
Join Date: Jul 2008
Device: Kobo Aura HD
Bug report ;-)

hallo,
erstens kriege ich ein Problem wegen Umlauten in optparse, wieso du nicht? Kennst du eine Lösung außer alles umzuschreiben?
Python 2.5.2 (FreeBSD 7.1-PRERELEASE #23)

Lösung: bitte ein u" bzw u' vor die strings schreiben (?)


Code:
$ python gbde.py  -h
Traceback (most recent call last):
  File "gbde.py", line 502, in <module>
    main()
  File "gbde.py", line 471, in main
    (options, args) = parser.parse_args()
  File "/usr/local/lib/python2.5/optparse.py", line 1385, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/local/lib/python2.5/optparse.py", line 1429, in _process_args
    self._process_short_opts(rargs, values)
  File "/usr/local/lib/python2.5/optparse.py", line 1536, in _process_short_opts
    option.process(opt, value, values, self)
  File "/usr/local/lib/python2.5/optparse.py", line 782, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/local/lib/python2.5/optparse.py", line 804, in take_action
    parser.print_help()
  File "/usr/local/lib/python2.5/optparse.py", line 1655, in print_help
    file.write(self.format_help().encode(encoding, "replace"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 54: ordinal not in range(128)

zweitens habe ich ein Problem bei
http://gutenberg.spiegel.de/?id=5&xid=883&kapitel=1

das Kapitel 1 steht nicht im Inhaltverzeichnis, also lädt er nur ab Kapitel 2 runter. Ist das ein Sonderfall?

Last edited by ksiflhjla8; 10-27-2008 at 09:37 PM.
ksiflhjla8 is offline   Reply With Quote