Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#2089 closed defect (fixed)

changeset 2251(centralizing date formatting) has a problem in my system.

Reported by: tdkim@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.9
Component: general Version: devel
Severity: normal Keywords: date formatting
Cc: Branch:
Release Notes:
API Changes:

Description

I tested trac revision 2260 from subversion repository.

The error message is

Oops...

Trac detected an internal error:

'ascii' codec can't decode byte 0xeb in position 4: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 131, in run
    dispatch_request(req.path_info, req, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 84, in dispatch
    populate_hdf(req.hdf, self.env, req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 150, in populate_hdf
    hdf['trac'] = {
  File "/usr/lib/python2.3/site-packages/trac/util.py", line 247, in format_datetime
    return unicode(text, sys.getdefaultencoding()).encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xeb in position 4: ordinal not in range(128)

My apache configuration is

<Location "/cgi-bin/trac.cgi">
    SetEnv TRAC_ENV "/home/SVN/MAIN.TRAC"
    SetEnv LC_TIME "ko_KR.UTF-8"
</Location>

Before trac revision 2260, the apache configuration has no problem.

If I delete "SetEnv LC_TIME "ko_KR.UTF-8"" in trac revision 2260, there is no error. but I can't see Korean time format in trac system.

My system info is

FC4
LANG=ko_KR.eucKR

Thank you for trac…

Attachments (0)

Change History (2)

comment:1 by Christopher Lenz, 14 years ago

Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

Sigh, locale support under Python could be more solid :-P

comment:2 by Christopher Lenz, 14 years ago

Resolution: fixed
Status: assignedclosed

This should be fixed in [2265].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.