- attached sqlsoup.patch
sqlsoup: repr fails for wrong default locale
Issue #1136
resolved
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)
-
Account Deleted -
repo owner - assigned issue to
-
This needs a test case showing how you get the failing repr.
-
Account Deleted - assigned issue to
-
Account Deleted - changed status to resolved
- Log in to comment
patch for sqlsoup.py