[Trac-tickets] [The Trac Project] #2089: changeset 2251(centralizing date formatting) has a problem in my system.

The Trac Project noreply at edgewall.com
Tue Sep 20 06:29:34 CDT 2005


#2089: changeset 2251(centralizing date formatting) has a problem in my system.
-------------------------------+--------------------------------------------
 Reporter:  tdkim at unimo.co.kr  |       Owner:  jonas
     Type:  defect             |      Status:  new  
 Priority:  normal             |   Milestone:  0.9  
Component:  general            |     Version:  devel
 Severity:  normal             |   Keywords:  date formatting    |  
-------------------------------+--------------------------------------------
 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...

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2089>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list