Opened 7 years ago

Closed 2 years ago

#1235 closed defect (wontfix)

WikiFormatting page does not work with trac-french last package, mandriva 2007, python-2.5

Reported by: Guillaume.Bourque@… Owned by: eblot
Priority: normal Component: TracFrenchTranslation
Severity: normal Keywords:
Cc: Trac Release: 0.10



on my mandriva 2007 server I can use the trac 0.10.3 package fine, but when I try to use the french version everything seem fine execpt that the WikiFormatting page give me the error bellow :(

My machine is a stock mandriva 2007 with python upgrade to 2.5

If I try has documented to put PythonOption TracLocale "fr_FR.utf-8" in my apache webapp config file, I get teh following error in apache errror log file.

[Fri Feb 23 00:51:40 2007] [error] [client]   File "/usr/lib/python2.5/", line 476, in setlocale\n    return _setlocale(category, locale), referer: http://vm-2007/trac/wiki/WikiFormatting
[Fri Feb 23 00:51:40 2007] [error] [client] Error: unsupported locale setting, referer: http://vm-2007/trac/wiki/WikiFormatting

Here is what I get If I dont set the option PythonOption TracLocale "fr_FR.utf-8"

Pile d'appel Python

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/", line 399, in dispatch_request
  File "/usr/lib/python2.5/site-packages/trac/web/", line 239, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 135, in process_request
    self._render_view(req, db, page)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 444, in _render_view
    'page_html': wiki_to_html(page.text, self.env, req),
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 1000, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 794, in format
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 734, in handle_code_block
    self.req, self.code_text)))
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 113, in process
    text = self.processor(req, text)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 104, in _mimeview_processor
    return Mimeview(self.env).render(req,, text)
  File "/usr/lib/python2.5/site-packages/trac/mimeview/", line 466, in render
    % (renderer, e), exc_info=True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 4: ordinal not in range(128)

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by anonymous


I get the same error when I run tracd --port 80 /var/opt/trac-lst-fr, but again only with the WikiFormatting page, all other pages seem fine ! ?

This used to work in the same machine but with python 2.4, but since it is recommended tu used trac 0.10.3 with python 2.5 I decided to Upgrade to python 2.5.

Here is my locale settings

[root@vm-2007 httpd]# locale
[root@vm-2007 httpd]#             

comment:2 Changed 7 years ago by anonymous

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


I did an strace -f on the PID of tracd and found out that enscript was missing on my linux box.

I installed the enscript rpm urpmi enscript and the problem was gone !

I love this software :-)


comment:3 Changed 7 years ago by eblot

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 2 years ago by eblot

  • Resolution set to wontfix
  • Status changed from reopened to closed

This plugin is not maintained since Trac offers full localization support.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from eblot. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.