--- versioncontrol/web_ui/changeset.py.orig	2006-07-18 14:25:22.000000000 -0400
+++ versioncontrol/web_ui/changeset.py	2006-07-18 15:02:16.000000000 -0400
@@ -221,6 +221,10 @@
                 continue
 
             # Content changes
+            if old_node.content_type and not old_node.content_type.startswith("text/"):
+                continue
+            if new_node.content_type and not new_node.content_type.startswith("text/"):
+                continue
             default_charset = self.config.get('trac', 'default_charset')
             old_content = old_node.get_content().read()
             if mimeview.is_binary(old_content):
@@ -286,6 +290,8 @@
             new_node_info = old_node_info = ('','')
 
             if old_node:
+                if old_node.content_type and not old_node.content_type.startswith("text/"):
+                    continue
                 charset = mimeview.get_charset(old_node.content_type) or \
                           default_charset
                 old_content = util.to_utf8(old_node.get_content().read(),
@@ -295,6 +301,8 @@
                 continue
 
             if new_node:
+                if new_node.content_type and not new_node.content_type.startswith("text/"):
+                    continue
                 charset = mimeview.get_charset(new_node.content_type) or \
                           default_charset
                 new_content = util.to_utf8(new_node.get_content().read(),

