Opened 12 years ago
Last modified 12 years ago
#10920 closed defect
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8c in position 14: ordinal not in range(128) — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | 0.12.5 |
Component: | roadmap | Version: | 1.0 |
Severity: | normal | Keywords: | unicode localtz datefmt |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I can see that this is related to the Polish locale, the unicode error occured at the local time designation "X-WR-TIMEZONE:\x8crodkowoeuropejski czas…" where \x8c stands for Polish "ś".
How to Reproduce
While doing a GET operation on /roadmap
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'format': u'ics', 'user': u'admin'}
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
System Information
Trac | 1.0
|
Babel | 0.9.6
|
Genshi | 0.6 (without speedups)
|
Pygments | 1.5
|
pysqlite | 2.6.0
|
Python | 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]
|
pytz | 2011c
|
RPC | 1.1.2
|
setuptools | 0.6c11
|
SQLite | 3.6.21
|
Subversion | 1.7.5 (r1336830)
|
jQuery | 1.7.2
|
Enabled Plugins
tracxmlrpc | 1.1.2
|
Python Traceback
Traceback (most recent call last): File "c:\users\lukasz\appdata\local\temp\easy_install-myvpng\Trac-1.0-py2.7-win32.egg.tmp\trac\web\main.py", line 497, in _dispatch_request dispatcher.dispatch(req) File "c:\users\lukasz\appdata\local\temp\easy_install-myvpng\Trac-1.0-py2.7-win32.egg.tmp\trac\web\main.py", line 214, in dispatch resp = chosen_handler.process_request(req) File "c:\users\lukasz\appdata\local\temp\easy_install-myvpng\Trac-1.0-py2.7-win32.egg.tmp\trac\ticket\roadmap.py", line 442, in process_request self._render_ics(req, milestones) File "c:\users\lukasz\appdata\local\temp\easy_install-myvpng\Trac-1.0-py2.7-win32.egg.tmp\trac\ticket\roadmap.py", line 574, in _render_ics ics_str = buf.getvalue().encode('utf-8') File "c:\Python27\lib\StringIO.py", line 270, in getvalue self.buf += ''.join(self.buflist) UnicodeDecodeError: 'ascii' codec can't decode byte 0x8c in position 14: ordinal not in range(128)
Note:
See TracTickets
for help on using tickets.