Opened 19 years ago
Closed 19 years ago
#2363 closed defect (fixed)
Broken non-latin diff highlighting
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.10 |
Component: | version control/changeset view | Version: | 0.9 |
Severity: | major | Keywords: | |
Cc: | vyt@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
In changeset view diff produced unreadable symbols somewhere. It caused by <del>/<ins> tags, inserted inside symbol. For example Russian symbols coded in UTF-8 in two bytes, and <del> inserted after first byte of symbol and before second byte.
Python string functions like len() and range() (used in hdf_diff()) works with Unicode correct, but not with utf-8.
Attached patch (against trac-0.9 release) changed string representation in hdf_diff() to Unicode and works for me :)
Attachments (4)
Change History (8)
by , 19 years ago
Attachment: | trac-0.9-diff_with_unicode.patch added |
---|
comment:1 by , 19 years ago
I think, trac/mimeview/patch.py also have this problem and should be fixed by sharing code from diff.py
by , 19 years ago
Attachment: | trac.diff-broken-hoghlighting.png added |
---|
Diff with broken highlighting
comment:2 by , 19 years ago
Reproduced on edgewall.com, see text below TranslationRu/TracGuide:
http://projects.edgewall.com/trac/search?ticket=on&changeset=on&wiki=on&q=vyt%40vzljot.ru&page=3
comment:3 by , 19 years ago
Milestone: | → 0.10 |
---|---|
Owner: | changed from | to
Patch for non-latin diff in changeset view