Code

Opened 4 years ago

Closed 4 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: UI/UX:

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.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by kmtracey

  • Resolution set to invalid
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.