Commits

Anonymous committed 7451058

0.9-stable: fix another error introduced in [2724].

  • Participants
  • Parent commits 24a7ad5
  • Branches 0.9-stable

Comments (0)

Files changed (1)

trac/mimeview/api.py

                     'max_file_size': max_preview_size}
 
         if not is_binary(content):
-            content = to_utf8(content, charset or self.preview_charset(content))
+            content = to_utf8(content, charset or self.get_charset(content))
         return {'preview': self.render(req, mimetype, content,
                                        filename, detail, annotations)}