Opened 16 years ago
Closed 3 years ago
#4614 closed defect (worksforme)
Some nls trouble.
Reported by: | anonymous | Owned by: | osimons |
---|---|---|---|
Priority: | normal | Component: | FullBlogPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Incorrect encoding of output symbols for months if trac started with specific locale for LC_TIME. In my case it's ru_RU. See attached screenshot...
Attachments (1)
Change History (6)
Changed 16 years ago by
Attachment: | Untitled-1.png added |
---|
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
- [trac] default_charset = set to utf-8.
- if I set [fullblog] month_names = to list of months in ru_RU then all fine. Thanks.
comment:3 follow-up: 4 Changed 15 years ago by
In [6794], a minor change was made for the display of month names. I'd be very interested to see if this also fixes you encoding issue. Could you possibly comment out your month_names
setting and try your default again? Anyone still seeing encoding issues?
comment:4 Changed 11 years ago by
Replying to osimons:
In [6794], a minor change was made for the display of month names. I'd be very interested to see if this also fixes you encoding issue. Could you possibly comment out your
month_names
setting and try your default again? Anyone still seeing encoding issues?
I use latest FullBlogPlugin from svn. In env configuration [trac] default_charset
set to utf-8
[fullblog] month_names
not set, but i have similar bug with month names in blog side bar.
If edit in tracfullblog\util.py
def map_month_names(month_list):
... return [to_unicode(calendar.month_name[i+1], charset="cp1251") for i in range(12)] ...
then month names OK.
comment:5 Changed 3 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Please create a new issue if this can be reproduced with the latest.
What does the
[trac] default_charset =
setting say on your setup? I think it gets a different encoding from the Pythoncalendar
stdlib than what you use elsewhere in you Trac setup.As a workaround, there is a setting for defining month names if you don't want your locale default (i use
no_NB
locale, but want an English blog):Should perhaps also work if you type your
ru_RU
names in the settings as that file is UTF-8 encoded?