quait / madcow

Automatically exported from code.google.com/p/madcow
GNU General Public License v3.0
0 stars 0 forks source link

"list bibles" fails after first line #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. /msg bot list bibles
2.
3.

What is the expected output? What do you see instead?
prints DN1933 - Dette er Biblen på dansk

What version of the product are you using? On what operating system?
madcow 2.1.0, Linux, Python 2.6.7

Please provide any additional information below.

[2012/03/29 19:36:33 - ERROR] error in output: u"  DN1933 - Dette er Biblen 
p\xc3\xa5 dansk\n      GW - GOD\u2019S WORD Translation\n    ALAB - Arabic Life 
Application Bible\n     SNC - Slovo na cestu\n     ESV - English Standard 
Version\n    KJ21 - 21st Century King James Version\n RVR1995 - Reina-Valera 
1995\n  REIMER - Reimer 2001\n    TNIV - Today's New International Version\n    
CUVS - Chinese Union Version (Simplified)\n     CCO - Chinanteco de 
Comaltepec\n     WYC - Wycliffe New Testament\n     USP - Uspanteco\n     MSG - 
The Message\n    VIET - 1934 Vietnamese Bible\n     WLC - The Westminster 
Leningrad Codex\n    BULG - Bulgarian Bible\n     CRO - Croatian 
Bible\nLUTH1545 - Luther Bibel 1545\n     LSG - Louis Segond\n     RVA - 
Reina-Valera Antigua\n   MAORI - Maori Bible\n      LB - Levande Bibeln\n     
ASV - American Standard Version\n     HOF - Hoffnung f\xfcr Alle\n    NKJV - 
New King James Version\n      LM - La Parola \xe8 Vita\n     MNT - Macedonian 
New Testament\n     JAC - Jacalteco, Oriental\n     QUT - Quich\xe9, Centro 
Occidental\n     CEV - Contemporary English Version\n  SV1917 - Svenska 1917\n  
   SVL - Levande Bibeln\n    RMNN - Romanian\n RVR1960 - Reina-Valera 1960\n    
 AMP - Amplified Bible\n    HCSB - Holman Christian Standard Bible\n     AMU - 
Amuzgo de Guerrero\n      WE - Worldwide English (New Testament)\n      AA - 
Jo\xe3o Ferreira de Almeida Atualizada\n     CUV - Chinese Union Version 
(Traditional)\n      OL - O Livro\n     HCV - Haitian Creole Version\n    RUSV 
- Russian Synodal Version\n   DARBY - Darby Translation\n     UKR - Ukrainian 
Bible\n     TLA - Traducci\xf3n en lenguaje actual\n     MVC - Mam, Central\n   
  KJV - King James Version\n     BDS - La Bible du Semeur\n     LND - La Nuova 
Diodati\n     CST - Castilian\n     MVJ - Mam de Todos Santos Chuchumat\xe1n\n  
BG1940 - 1940 Bulgarian Bible\n     NLT - New Living Translation\n      SZ - 
Slovo Zhizny\n     SND - Ang Salita ng Diyos\n    NIRV - New International 
Reader's Version\n     KEK - Kekchi\n     HTB - Het Boek\n     NPK - N\xe1dej 
pre kazd\xe9ho\n     NGU - N\xe1huatl de Guerrero\n DNB1930 - Det Norsk 
Bibelselskap 1930\n    WHNU - 1881 Westcott-Hort New Testament\n     ALB - 
Albanian Bible\n     CKW - Cakchiquel Occidental\n     NCV - New Century 
Version\n    TLCR - Romanian\n    NASB - New American Standard Bible\n     KAR 
- Hungarian K\xc3\xa1roli\n     SNT - Swahili New Testament\n   NIVUK - New 
International Version - UK\n ICELAND - Icelandic Bible\n  TR1894 - 1894 
Scrivener New Testament\n     YLT - Young's Literal Translation\n    HLGN - 
Hiligaynon Bible\n     NIV - New International Version\n  TR1550 - 1550 
Stephanus New Testament\n     NVI - Nueva Versi\xf3n Internacional\n    LBLA - 
La Biblia de las Am\xe9ricas"
[2012/03/29 19:36:33 - ERROR] Traceback (most recent call last):
[2012/03/29 19:36:33 - ERROR]   File 
"/usr/local/pythonbrew/pythons/Python-2.6.7/lib/python2.6/site-packages/madcow/_
_init__.py", line 187, in handle_response
[2012/03/29 19:36:33 - ERROR]     self.protocol_output(response, req)
[2012/03/29 19:36:33 - ERROR]   File 
"/usr/local/pythonbrew/pythons/Python-2.6.7/lib/python2.6/site-packages/madcow/p
rotocol/irc.py", line 216, in protocol_output
[2012/03/29 19:36:33 - ERROR]     self.logpublic(channel, '<%s> %s' % 
(self.botname(), line))
[2012/03/29 19:36:33 - ERROR]   File 
"/usr/local/pythonbrew/pythons/Python-2.6.7/lib/python2.6/site-packages/madcow/_
_init__.py", line 363, in logpublic
[2012/03/29 19:36:33 - ERROR]     print >> fp, '%s %s' % (time.strftime('%T'), 
line.encode(self.charset, 'replace'))
[2012/03/29 19:36:33 - ERROR] UnicodeDecodeError: 'ascii' codec can't decode 
byte 0xc3 in position 42: ordinal not in range(128)

Original issue reported on code.google.com by spacexpl...@gmail.com on 29 Mar 2012 at 11:39

GoogleCodeExporter commented 9 years ago
Hrm.. I am not getting this. Do you actually have the encoding set to ASCII in 
settings.py instead of UTF-8?

I suppose it's also possible they fixed their website since then. They've 
always had the encoding messed up in various ways.. let me know if this is 
still an issue and I'll look at it more closely.

Original comment by cjo...@gmail.com on 30 Jun 2012 at 3:21