Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#2020 closed defect (worksforme)

Broken encoding in the ticket timestamps.

Reported by: tiger@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: devel
Severity: normal Keywords:
Cc: tiger@… Branch:
Release Notes:
API Changes:

Description

You can see in the attachment bugshot the funny characters instead of cyrillic text in the comments' dates. Guess it's related to wrong recoding local date to the UTF8.

BTW: I have below entry in the trac.conf. Source browser works normally.

default_charset = windows-1251

Attachments (3)

bug-shot1.jpg (13.3 KB ) - added by tiger@… 14 years ago.
bug shot
bug-shot2.jpg (10.6 KB ) - added by tiger@… 14 years ago.
same bug, but in the attachments' timestamps
bug-shot3.jpg (5.7 KB ) - added by tiger@… 14 years ago.
same with dates in the source browser…

Download all attachments as: .zip

Change History (5)

by tiger@…, 14 years ago

Attachment: bug-shot1.jpg added

bug shot

by tiger@…, 14 years ago

Attachment: bug-shot2.jpg added

same bug, but in the attachments' timestamps

by tiger@…, 14 years ago

Attachment: bug-shot3.jpg added

same with dates in the source browser…

comment:1 by tiger@…, 14 years ago

Summary: Broken encoding in the ticket comments.Broken encoding in the ticket timestamps.

This happens only if using mod_python. CGI version works normally, it just writes latin dates.

I've tried below approaches with no success:

  1. I've tried to set option
      PythonOption TracLocale "ru_RU.cp1251"
    
    in the apache's <Location> directive.
  2. I've tried to set both env vars LANG && LC_ALL for apache…
      Debug output:
        os.environ = {'LANG': 'ru_RU.cp1251', 'SHLVL': '1', 'PWD': '/',
       'PATH': '/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin',
       'LC_ALL': 'ru_RU.cp1251', '_': '/sbin/initlog'}
    

Additional info: i686 GNU/Linux, Python 2.3.5, Apache/2.0.46, mod_python-3.1.4

comment:2 by tiger@…, 14 years ago

Resolution: worksforme
Status: newclosed

Seems fixed in [2251]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Jonas Borgström 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.