Hello everyone. I am a new TRAC user that has it installed and working
(for the most part) on a Solaris 10 installation using the 0.9.4 package
from blastwave.org*. TRAC is running using the fastCGI daemon and
apache2. The repository was recently migrated from a Fedora Core 2
machine using the en_US.ISO8859-1 locale. And the default locale on the
solaris machine is "C". All the files in question are PHP files that
have no non-ascii characters in them.

99% of TRAC seems to be working fine, but my issue is that for some
files in my repository I encounter the following error when viewing more
recent revisions:

---------------------------
Trac detected an internal error:
 ("Can't create a character converter from 'UTF-8' to native encoding",
2)

Python traceback:
 Traceback (most recent call last):
  File "/opt/csw/lib/python2.3/site-packages/trac/web/fcgi_frontend.py",
line 40, in _handler
    dispatch_request(req.path_info, req, env)
  File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line
139, in dispatch_request
    dispatcher.dispatch(req)
  File "/opt/csw/lib/python2.3/site-packages/trac/web/main.py", line
107, in dispatch
    resp = chosen_handler.process_request(req)
  File
"/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/web_ui/browser
.py", line 104, in process_request
    self._render_file(req, repos, node, rev)
  File
"/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/web_ui/browser
.py", line 169, in _render_file
    mime_type = node.content_type
  File
"/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/api.py", line
180, in <lambda>
    content_type = property(lambda x: x.get_content_type())
  File
"/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/svn_fs.py",
line 433, in get_content_type
    return self._get_prop(core.SVN_PROP_MIME_TYPE)
  File
"/opt/csw/lib/python2.3/site-packages/trac/versioncontrol/svn_fs.py",
line 441, in _get_prop
    return fs.node_prop(self.root, self.scoped_path, name, self.pool())
  File "/opt/csw/lib/python2.3/libsvn/fs.py", line 380, in
svn_fs_node_prop
    return apply(_fs.svn_fs_node_prop, args)
 SubversionException: ("Can't create a character converter from 'UTF-8'
to native encoding", 2)
-------------------------------------

What really puzzles me is that for some other files this error will
happen the first time I try to display it, but when I refresh the page
the file displays fine. Now from the error I think it's clear that this
is an issue with subversion, and not TRAC specifically. However, the
only time I'm having this issue is when trac displays these files, so
I'm hoping that someone on this list might have run into this before.

To date I have tried installing the en_US.UTF-8 locale on the solaris
machine and placing a SetEnv statement in httpd.conf to force the locale
for trac.fcgi, but that doesn't seem to have an effect. I've also tried
running the tracd daemon and I get the exact same issues as when I use
the fcgi version.

Can anyone point me in a direction to get this problem solved? Or is
there some more important information I can provide? Thank you in
advance.

-Sam

* http://www.blastwave.org/packages/trac

---
Sam Storie
Database Administrator
Rosemount Incorporated
Emerson Process Management
(952)949-7021
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to