Edgewall Software

Opened 18 years ago

Last modified 9 years ago

#3689 new enhancement

patch for mimeviewer: autodetect charset by "# -*- coding: windows-1251 -*-"

Reported by: igor daniloff Owned by:
Priority: normal Milestone: next-major-releases
Component: version control/browser Version: 0.10b1
Severity: minor Keywords: patch mimeviewer charset auto coding
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


* api.py.bak2

                return utf
        return self.default_charset

* api.py

                return utf
        m = re.search(r'-\*-\s+coding:\s*(\S+)\s+-\*-', content[:100])
        if m:
           return m.group(1)
        return self.default_charset


Attachments (0)

Change History (5)

comment:1 by sid, 18 years ago

Keywords: review added

patch attached, adding review keyword

comment:2 by Christian Boos, 18 years ago

Keywords: review removed
Milestone: 0.11
Owner: changed from Jonas Borgström to Christian Boos
Severity: normalminor

Well, I think I'm going to integrate #3332 piecewise and I'll add this one to the mix.

comment:3 by Christian Boos, 17 years ago

Milestone: 0.110.12

#3332 and related changes are postponed to 0.12.

comment:4 by Ryan J Ollos, 9 years ago

Owner: Christian Boos removed

comment:5 by figaro, 9 years ago

Keywords: patch added

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.