32994cd
diff -up rpmlint-1.3/FilesCheck.py.ghostfix rpmlint-1.3/FilesCheck.py
32994cd
--- rpmlint-1.3/FilesCheck.py.ghostfix	2011-10-12 14:46:28.290703772 -0400
32994cd
+++ rpmlint-1.3/FilesCheck.py	2011-10-12 14:46:35.254619020 -0400
32994cd
@@ -748,7 +748,7 @@ class FilesCheck(AbstractCheck.AbstractC
32994cd
                 res = man_base_regex.search(f)
32994cd
                 if res:
32994cd
                     man_basenames.add(res.group(1))
32994cd
-                    if use_utf8:
32994cd
+                    if use_utf8 and chunk:
32994cd
                         # TODO: better shell escaping or seq based invocation
32994cd
                         cmd = commands.getstatusoutput(
32994cd
                             'env LC_ALL=C %s "%s" | gtbl | '
32994cd
@@ -807,7 +807,7 @@ class FilesCheck(AbstractCheck.AbstractC
32994cd
                             fsf_wrong_address_regex.search(chunk):
32994cd
                         printError(pkg, 'incorrect-fsf-address', f)
32994cd
 
32994cd
-                elif is_doc and compr_regex.search(f):
32994cd
+                elif is_doc and chunk and compr_regex.search(f):
32994cd
                     ff = compr_regex.sub('', f)
32994cd
                     if not skipdocs_regex.search(ff):
32994cd
                         # compressed docs, eg. info and man files etc