Opened 15 years ago

Closed 15 years ago

#13306 closed (invalid)

Umlaut gets currupted using django shell

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords:
Cc: glua@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I've detected some strange behavior using django shell (./manage.py shell), python2.5 and umlauts. It also persists if I try to reindex the search data with ./manage.py solr --reindex. But it also happens on systems without the app 'solango'.

$ python manage.py shell
Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> print u'blä'
blä
$ python
Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print u'blä'
blä

It doesn't occur on systems with python2.6.

Change History (2)

comment:1 by Russell Keith-Magee, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Karen Tracey, 15 years ago

Resolution: invalid
Status: newclosed

This is a Python bug: http://bugs.python.org/issue1288615

It does not happen with 2.6 because that is when it was fixed in Python.

The workaround for earlier levels of Python and doing Django shell work is to use a bare Python shell (after setting DJANGO_SETTINGS_MODULE and whatever is needed in PYTHONPATH) instead of manage.py shell.

Note: See TracTickets for help on using tickets.
Back to Top