#4524 closed defect (fixed)
Can't add accented characters
Reported by: | emonesi | Owned by: | osimons |
---|---|---|---|
Priority: | high | Component: | CustomFieldAdminPlugin |
Severity: | critical | Keywords: | ASCII accented chars characters portuguese pt-br |
Cc: | Trac Release: | 0.11 |
Description
When I tried to add accented characters (like á, ã, é, etc), in Options for Radio or Select field, Trac thrown the message below:
Trac detected an internal error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 79: ordinal not in range(128) Most recent call last: * File "C:\Program Files\Python25\Lib\site-packages\trac\web\main.py", line 432, in _dispatch_request * File "C:\Program Files\Python25\Lib\site-packages\trac\web\main.py", line 204, in dispatch * File "C:\Program Files\Python25\Lib\site-packages\trac\admin\web_ui.py", line 113, in process_request * File "build\bdist.win32\egg\customfieldadmin\customfieldadmin.py", line 55, in render_admin_panel * File "build\bdist.win32\egg\customfieldadmin\api.py", line 104, in update_custom_field * File "build\bdist.win32\egg\customfieldadmin\api.py", line 92, in create_custom_field * File "C:\Program Files\Python25\Lib\site-packages\trac\config.py", line 199, in save
- Here is my environment:
System Information: User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 Ubiquity/0.1.5 Trac: 0.11.2.1 Python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] setuptools: 0.6c9 SQLite: 3.3.4 pysqlite: 2.3.2 Genshi: 0.5.1 mod_python: 3.3.1 Pygments: 1.0 jQuery: 1.2.6
It's a great plugin that helped us. This bug is minor for while. :)
Attachments (0)
Change History (6)
comment:1 Changed 16 years ago by
- After this error message, Trac asked me to upgrade the environment
comment:2 Changed 16 years ago by
Priority: | normal → high |
---|---|
Severity: | minor → critical |
Oh. Not good at all. I can recreate the issue at my end.
The upgrade problem is that Trac writes the whole config file to disk, and when it hits the problem field it just stops. So all later settings will be lost... - including [ticket-custom]
and so on...
I'll look into it.
comment:3 Changed 16 years ago by
Really, after Trac upgrade, I lost the workflow configuration backing to version 0.10 workflow that doesn't have "accepted" state. Curiously, Trac put a message like "reset from invalid state" on ticket action, because was expected a "accepted" state.
My backup routine saved me today and I restored trac.ini from it. So, We always must have a test environment !
Thanks in advance and I'll wait for news.
comment:4 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [5161]) CustomFieldAdminPlugin: Fixing encoding issues when Trac writes the config to disk.
Closes #4524.
comment:5 Changed 16 years ago by
Thanks for your speed. I already downloaded the new version and I'll test it.
comment:6 Changed 14 years ago by
Keywords: | ASCII added; ascii removed |
---|