Modify ↓
Opened 20 years ago
Closed 20 years ago
#2089 closed defect (fixed)
changeset 2251(centralizing date formatting) has a problem in my system.
| Reported by: | Owned by: | Christopher Lenz | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | date formatting |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal 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 , 20 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
This should be fixed in [2265].
Note:
See TracTickets
for help on using tickets.



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