Edgewall Software

Ticket #3689 (new enhancement)

Opened 2 years ago

Last modified 18 months ago

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

Reported by: igor daniloff Owned by: cboos
Priority: normal Milestone: 0.13
Component: version control/browser Version: 0.10b1
Severity: minor Keywords: mimeviewer charset auto coding
Cc:

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

Changed 2 years ago by sid

  • keywords review added

patch attached, adding review keyword

Changed 2 years ago by cboos

  • keywords review removed
  • owner changed from jonas to cboos
  • severity changed from normal to minor
  • milestone set to 0.11

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

Changed 18 months ago by cboos

  • milestone changed from 0.11 to 0.12

#3332 and related changes are postponed to 0.12.

Add/Change #3689 (patch for mimeviewer: autodetect charset by "# -*- coding: windows-1251 -*-")

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.