sqlsoup: repr fails for wrong default locale

Issue #1136 resolved
Former user created an issue

repr from sqlsoup raises Exception ...

File '/Users/michael/programming/rumdemo2/lib/python2.5/site-packages/SQLAlchemy-0.4.7-py2.5.egg/sqlalchemy/ext/sqlsoup.py', line 478 in repr value = value.encode(encoding) File '/sw/lib/python2.5/encodings/mac_roman.py', line 12 in encode return codecs.charmap_encode(input,errors,encoding_table)

This is due to the encoding is guessed wrong from the default locale. However guessing the encoding seems to be unecessary at all: The repr function does this better (look at the patch, I just removed three lines)

Comments (5)

  1. Log in to comment