Edgewall Software

Opened 15 years ago

Last modified 13 years ago

#8710 closed defect

Change default encoding for mimeview to UTF-8 from ISO-8859-15 — at Initial Version

Reported by: anatoly techtonik <techtonik@…> Owned by:
Priority: normal Milestone: 1.0
Component: rendering Version: 0.11.5
Severity: trivial Keywords: unicode
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This is patch from Debian package http://packages.debian.org/sid/trac

  • trac/mimeview/api.py

    #! /bin/sh /usr/share/dpatch/dpatch-run
    ## 30_default_charset_utf8.dpatch by  <wmb@beron.tangosoft.com>
    ##
    ## All lines beginning with `## DP:' are a description of the patch.
    ## DP: Use UTF-8 as default charset
    
    @DPATCH@
    
    diff -uraN trac-0.11.5.orig/trac/mimeview/api.py trac-0.11.5/trac/mimeview/api.py
    old new  
    579579    annotators = ExtensionPoint(IHTMLPreviewAnnotator)
    580580    converters = ExtensionPoint(IContentConverter)
    581581
    582     default_charset = Option('trac', 'default_charset', 'iso-8859-15',
     582    default_charset = Option('trac', 'default_charset', 'utf-8',
    583583        """Charset to be used when in doubt.""")
    584584
    585585    tab_width = IntOption('mimeviewer', 'tab_width', 8,

Change History (0)

Note: See TracTickets for help on using tickets.