Modify ↓
Opened 4 years ago
Closed 4 years ago
#13459 closed defect (fixed)
Syntax highlight doens't work for a file without svn:mime-type in Subversion repository
| Reported by: | Jun Omae | Owned by: | Jun Omae |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.4 |
| Component: | version control/browser | Version: | 1.5.3 |
| Severity: | normal | Keywords: | svn |
| Cc: | Branch: | ||
| Release Notes: |
Fixed wrong content_type for a file in Subversion repository when |
||
| API Changes: | |||
| Internal Changes: | |||
Description
Reported at gmessage:trac-users:ZI6x6-IaY0c/m/_YhEYQHWAwAJ.
My Trac installation will not do syntax highlighting based on file extension in Subversion repository browser, only when I set it explicitly, like:
svn propset svn:mime-type "`file -bi start.pl`" start.plOnly then syntax highlighting works, for this file only. Do I have to set this property on all files to see them highlighted?
Attachments (0)
Change History (2)
comment:1 by , 4 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 4 years ago
| Release Notes: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Committed in [17574].
Note:
See TracTickets
for help on using tickets.



The following patch fixes it. I'll push the patch with a test case.
tracopt/versioncontrol/svn/svn_fs.py
to_unicode(value)