Edgewall Software
Modify

Ticket #9152 (closed defect: wontfix)

Opened 23 months ago

Last modified 13 months ago

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 26: ordinal not in range(128)

Reported by: anonymous Owned by:
Priority: high Milestone:
Component: general Version:
Severity: normal Keywords: needinfo
Cc:
Release Notes:
API Changes:

Description (last modified by cboos) (diff)

How to Reproduce

While doing a GET operation on /admin, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'cat_id': None, 'panel_id': None, 'path_info': None}

User Agent was: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.1.8) Gecko/20100308 Iceweasel/3.5.8 (like Firefox/3.5.8)

System Information

Trac 0.11.7
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
setuptools 0.6c11
SQLite 3.3.4
pysqlite 2.3.2
Genshi 0.5.1
Subversion 1.5.2 (r32768)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 227, in dispatch
    data, content_type)
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 738, in render_template
    template = self.load_template(filename, method=method)
  File "C:\Python25\Lib\site-packages\trac\web\chrome.py", line 712, in load_template
    return self.templates.load(filename, cls=cls)
  File "C:\Python25\lib\site-packages\genshi\template\loader.py", line 227, in load
    filename, encoding=encoding)
  File "C:\Python25\lib\site-packages\genshi\template\loader.py", line 265, in _instantiate
    allow_exec=self.allow_exec)
  File "C:\Python25\lib\site-packages\genshi\template\base.py", line 377, in __init__
    self.stream = list(self._prepare(self._parse(source, encoding)))
  File "C:\Python25\lib\site-packages\genshi\template\base.py", line 444, in _prepare
    cls=cls or self.__class__)
  File "C:\Python25\lib\site-packages\genshi\template\loader.py", line 214, in load
    filepath, filename, fileobj, uptodate = loadfunc(filename)
  File "C:\Python25\lib\site-packages\genshi\template\loader.py", line 275, in _load_from_directory
    filepath = os.path.join(path, filename)
  File "C:\Python25\lib\ntpath.py", line 102, in join
    path += "\\" + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 26: ordinal not in range(128)


Attachments

Change History

comment:1 Changed 23 months ago by rblank

  • Keywords needinfo added

Does the path to your Trac environment happen to have non-ASCII characters?

comment:2 Changed 18 months ago by anonymous

Yes. I have this error too in Windows Server 2003

comment:3 Changed 13 months ago by cboos

  • Description modified (diff)
  • Resolution set to wontfix
  • Status changed from new to closed

No feedback in more than 3 months, closing.

Probably due to using non-ASCII filesystem paths, which is not supported.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from (none). Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.