Bug#410199: rawdog: Critical UnicodeDecodeError while writing.

2007-02-11 Thread Steve Langasek
severity 410199 important
thanks

On Thu, Feb 08, 2007 at 05:31:05PM +0300, Eugene Oleinik wrote:
 Package: rawdog
 Version: 2.10.dfsg.1-1
 Severity: grave

 I'm encountering a critical error while trying to update and write
 news with rawdog.

I'm sorry that rawdog isn't working for you.  This bug doesn't make the
package unusable for everyone, though; ascii-only RSS is a common case, and
I don't think this package should be excluded from the release for not
handling non-ASCII characters, so I'm downgrading this bug.

A fix would certainly be accepted into etch for this if made available.

Cheers,
-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
[EMAIL PROTECTED]   http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#410199: rawdog: Critical UnicodeDecodeError while writing.

2007-02-08 Thread Eugene Oleinik
Package: rawdog
Version: 2.10.dfsg.1-1
Severity: grave

I'm encountering a critical error while trying to update and write
news with rawdog.

% /usr/bin/rawdog -u -w
Starting update
Will update 1 feeds
Updating feed 1 of 1: http://rss.slashdot.org/Slashdot/slashdot
Expired 0 articles, leaving 15
Finished update
Starting write
Selected 15 of 15 articles to write; ignored 0 duplicates
Traceback (most recent call last):
  File /usr/bin/rawdog, line 31, in ?
launch()
  File /usr/bin/rawdog, line 24, in launch
sys.exit(main(sys.argv[1:]))
  File /var/lib/python-support/python2.4/rawdoglib/rawdog.py, line 1489, in 
main
rawdog.write(config)
  File /var/lib/python-support/python2.4/rawdoglib/rawdog.py, line 1371, in 
write
self.write_output_file(articles, article_dates, config)
  File /var/lib/python-support/python2.4/rawdoglib/rawdog.py, line 1310, in 
write_output_file
bits = self.get_main_template_bits(config)
  File /var/lib/python-support/python2.4/rawdoglib/rawdog.py, line 1290, in 
get_main_template_bits
bits[feeds] = f.getvalue()
  File /usr/lib/python2.4/StringIO.py, line 271, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 11: 
ordinal not in range(128)

I also tried to run rawdog with python2.3:

% python2.3 /usr/bin/rawdog -u -w
Starting update
Will update 1 feeds
Updating feed 1 of 1: http://rss.slashdot.org/Slashdot/slashdot
Expired 0 articles, leaving 15
Finished update
Starting write
Selected 15 of 15 articles to write; ignored 0 duplicates
Traceback (most recent call last):
  File /usr/bin/rawdog, line 31, in ?
launch()
  File /usr/bin/rawdog, line 24, in launch
sys.exit(main(sys.argv[1:]))
  File /var/lib/python-support/python2.3/rawdoglib/rawdog.py, line 1489, in 
main
rawdog.write(config)
  File /var/lib/python-support/python2.3/rawdoglib/rawdog.py, line 1371, in 
write
self.write_output_file(articles, article_dates, config)
  File /var/lib/python-support/python2.3/rawdoglib/rawdog.py, line 1310, in 
write_output_file
bits = self.get_main_template_bits(config)
  File /var/lib/python-support/python2.3/rawdoglib/rawdog.py, line 1290, in 
get_main_template_bits
bits[feeds] = f.getvalue()
  File /usr/lib/python2.3/StringIO.py, line 203, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 11: 
ordinal not in range(128)

Rawdog, fetched today from darcs repository
(http://offog.org/darcs/rawdog/) works fine:

eo:~/src/rawdog% python rawdog -u -w  aiwass 
17:14
Starting update
Will update 1 feeds
Updating feed 1 of 1: http://rss.slashdot.org/Slashdot/slashdot
Expired 0 articles, leaving 15
Finished update
Starting write
Selected 15 of 15 articles to write; ignored 0 duplicates
Writing output file: /home/eo/public_html/news.html
Finished write

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-486
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages rawdog depends on:
ii  python2.4.4-2An interactive high-level object-o
ii  python-support0.5.6  automated rebuilding support for p

rawdog recommends no packages.

-- no debconf information


-- 
All the best, eo.

kill, kill, kill, for inner peace and mental health Путин - вор
Путин - враг России загипнотизированы фофудьей нарушение копирайта