Modify ↓
#8180 closed defect (duplicate)
Bad encoding in mercurial plugin
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | plugin/mercurial | Version: | none |
Severity: | major | Keywords: | unicode |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
In browse source I got an error UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 23: ordinal not in range(128)
(see attached screenshot).
I've fixed the bug by changing tracext/hg/backend.py:647:
if f.startswith(d):
to
if unicode(f, "utf-8").startswith(d):
Attachments (3)
Change History (8)
by , 16 years ago
Attachment: | trac-hg-bug.png added |
---|
comment:1 by , 16 years ago
Keywords: | unicode added |
---|---|
Milestone: | → not applicable |
Thanks for the report.
For the fix, I'd rather change convert [dir,]
from utf-8 to the encoding used for the repository file names (see #7799 and ticket:7160#comment:5).
comment:2 by , 15 years ago
Milestone: | not applicable → mercurial-plugin |
---|
comment:4 by , 13 years ago
Milestone: | plugin - mercurial |
---|
comment:5 by , 7 years ago
now reproduced on 1.2 version in FreeBSD 11.1 with the latest mercurial (v.4.*)
Note:
See TracTickets
for help on using tickets.
Bug illustration