Issue 1495704
Created on 2006-05-26 20:06 by tonimueller, last changed 2006-05-26 20:06 by tonimueller.
msg2265 |
Author: [hidden] (tonimueller) |
Date: 2006-05-26 20:06 |
|
I have saved queries that have German umlauts in their
name. With
1.1.2, these queries bomb out with some unicode error
(even if newly
created):
Templating Error
exceptions.UnicodeDecodeError: 'ascii' codec can't
decode byte 0xc3 in position 17: ordinal not in range(128)
Debugging information follows
1. A problem occurred in your template
"issue.index.html".
Full traceback:
Full traceback:
Traceback (most recent call last):
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/client.py",
line 730, in renderContext
result = pt.render(self, None, None, **args)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/templating.py",
line 322, in render
getEngine().getContext(c), output, tal=1,
strictinsert=0)()
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 192, in __call__
self.interpret(self.program)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 666, in do_useMacro
self.interpret(macro)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 411, in do_optTag_tal
self.do_optTag(stuff)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 396, in do_optTag
return self.no_tag(start, program)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 391, in no_tag
self.interpret(program)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 689, in do_defineSlot
self.interpret(slot)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
handlers[opcode](self, args)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 555, in do_insertTranslation
xlated_msgid = self.translate(msgid, default,
i18ndict, obj)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TAL/TALInterpreter.py",
line 618, in translate
msgid, i18ndict, default=default)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TranslationService.py",
line 77, in translate
target_language=target_language)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TranslationService.py",
line 32, in translate
_msg = self.gettext(msgid)
File
"/home/toni/mnt/deb/roundup-1.1.2/roundup/cgi/TranslationService.py",
line 38, in gettext
return
self.ugettext(msgid).encode(self.OUTPUT_ENCODING)
File "/usr/lib/python2.3/gettext.py", line 203, in
ugettext
return unicode(message)
UnicodeDecodeError: 'ascii' codec can't decode byte
0xc3 in position 17: ordinal not in range(128)
The problem only surfaces if I click on the left bar
where the saved
queries are, not on the right side when I first click
'edit', then
on the saved query's name in which case the query runs
just fine. The
difference is that in the sidebar, the query contains the
@dispname=<some-string-with-UTF-8-encoding> parameter.
How to repeat:
1. $ python demo.py
2. enter a few dummy issues
3. enter a query and give it a name with accented
characters
4. click on the query in the left box and see roundup
throwing an
exception
|
|
Date |
User |
Action |
Args |
2006-05-26 20:06:39 | tonimueller | create | |
|