Edgewall Software
Modify

Ticket #3689 (new enhancement)

Opened 5 years ago

Last modified 5 years ago

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

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

Description

* 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

Change History

comment:1 Changed 5 years ago by sid

  • Keywords review added

patch attached, adding review keyword

comment:2 Changed 5 years ago by cboos

  • Keywords review removed
  • Milestone set to 0.11
  • Owner changed from jonas to cboos
  • Severity changed from normal to minor

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

comment:3 Changed 5 years ago by cboos

  • Milestone changed from 0.11 to 0.12

#3332 and related changes are postponed to 0.12.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from cboos. Next status will be 'new'
The owner will be changed from cboos to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.