Modify

Opened 8 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

Description

Hello

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 192.168.4.101]   File "/usr/lib/python2.5/locale.py", 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 192.168.4.101] 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/main.py", line 399, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 239, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/trac/wiki/web_ui.py", line 135, in process_request
    self._render_view(req, db, page)
  File "/usr/lib/python2.5/site-packages/trac/wiki/web_ui.py", line 444, in _render_view
    'page_html': wiki_to_html(page.text, self.env, req),
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", 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/formatter.py", line 794, in format
    self.handle_code_block(line)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 734, in handle_code_block
    self.req, self.code_text)))
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 113, in process
    text = self.processor(req, text)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 104, in _mimeview_processor
    return Mimeview(self.env).render(req, self.name, text)
  File "/usr/lib/python2.5/site-packages/trac/mimeview/api.py", 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 8 years ago by anonymous

Hello,

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
LANG=fr_CA.UTF-8
LC_CTYPE=fr_CA.UTF-8
LC_NUMERIC=fr_CA.UTF-8
LC_TIME=fr_CA.UTF-8
LC_COLLATE=fr_CA.UTF-8
LC_MONETARY=fr_CA.UTF-8
LC_MESSAGES=fr_CA.UTF-8
LC_PAPER=fr_CA.UTF-8
LC_NAME=fr_CA.UTF-8
LC_ADDRESS=fr_CA.UTF-8
LC_TELEPHONE=fr_CA.UTF-8
LC_MEASUREMENT=fr_CA.UTF-8
LC_IDENTIFICATION=fr_CA.UTF-8
LC_ALL=
[root@vm-2007 httpd]#             

comment:2 Changed 8 years ago by anonymous

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

Hello,

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 :-)

Guillaume.

comment:3 Changed 8 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

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.