[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lintian: r1338 - in trunk: checks debian testset/manpages testset/manpages/debian



Author: rra
Date: 2008-06-05 06:22:31 +0200 (Thu, 05 Jun 2008)
New Revision: 1338

Added:
   trunk/testset/manpages/test.1p.utf-8
Modified:
   trunk/checks/manpages
   trunk/debian/changelog
   trunk/testset/manpages/debian/rules
Log:
* checks/manpages:
  + [RA] Only ignore errors about wrapping lines for Asian locale man
    pages, since that's where the groff trouble lies.  Ignore character
    set errors for all man pages with old versions of man and no man
    pages with current versions of man since the new character set
    handling should cope.  (Closes: #474052)

Modified: trunk/checks/manpages
===================================================================
--- trunk/checks/manpages	2008-06-05 02:23:00 UTC (rev 1337)
+++ trunk/checks/manpages	2008-06-05 04:22:31 UTC (rev 1338)
@@ -292,12 +292,15 @@
 	    next if /^\s*$/;
 	    # ignore errors from gzip, will be dealt with at other places
 	    next if /^(man|gzip)/;
-	    # ignore 8bit character errors on localized man pages
-	    if ($lang ne "") {
-		next if /warning: can\'t find numbered character/;
+	    # ignore wrapping failures for Asian man pages (groff problem)
+	    if ($lang =~ /^(?:ja|ko|zh)/) {
 		next if /warning \[.*\]: cannot adjust line/;
 		next if /warning \[.*\]: can\'t break line/;
 	    }
+	    # ignore charset issues with old versions of man for all man pages
+	    # since we can't know, with old versions, whether that was just a
+	    # Unicode issue
+	    next if !$MAN_WARNINGS && /warning: can\'t find numbered character/;
 	    # ignore common undefined macros from pod2man << Perl 5.10
 	    next if /warning: \`(Tr|IX)\' not defined/;
 	    chomp;

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-06-05 02:23:00 UTC (rev 1337)
+++ trunk/debian/changelog	2008-06-05 04:22:31 UTC (rev 1338)
@@ -16,6 +16,12 @@
       Conflicts, and other similar fields.  Warn if Breaks is used without
       a version.  Check that Breaks is not inconsistent with other
       dependency fields.
+  * checks/manpages:
+    + [RA] Only ignore errors about wrapping lines for Asian locale man
+      pages, since that's where the groff trouble lies.  Ignore character
+      set errors for all man pages with old versions of man and no man
+      pages with current versions of man since the new character set
+      handling should cope.  (Closes: #474052)
   * checks/md5sums:
     + [FL] Don't complain about missing md5sums file if the
       package only contains conffiles.  (Closes: #482869)

Modified: trunk/testset/manpages/debian/rules
===================================================================
--- trunk/testset/manpages/debian/rules	2008-06-05 02:23:00 UTC (rev 1337)
+++ trunk/testset/manpages/debian/rules	2008-06-05 04:22:31 UTC (rev 1338)
@@ -50,6 +50,9 @@
 	chmod 755 $(tmp)/usr/share/man/de/man1/binary-without-english-manpage.1
 	gzip -c9 <test.1p.de >$(tmp)/usr/share/man/de/man1/test-latin1-chars.1p.gz
 
+	install -d $(tmp)/usr/share/man/de_DE/man1
+	gzip -c9 <test.1p.utf-8 >$(tmp)/usr/share/man/de_DE/man1/test-utf8-chars.1p.gz
+
 	gzip -c9 <include.3 >$(tmp)/usr/share/man/man3/include.3.gz
 	gzip -c9 <included.3 >$(tmp)/usr/share/man/man3/included.3.gz
 

Added: trunk/testset/manpages/test.1p.utf-8
===================================================================
--- trunk/testset/manpages/test.1p.utf-8	                        (rev 0)
+++ trunk/testset/manpages/test.1p.utf-8	2008-06-05 04:22:31 UTC (rev 1338)
@@ -0,0 +1,10 @@
+.IX Title "TEST 1"
+.TH TEST 1P "2004-12-18" "Debian Project" "Debian GNU/Linux Handbuch"
+.SH "NAME"
+\&\fBTEST\fR \- Eine Test-Manpage mit .1P Erweiterung.
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+\&\fBTEST\fR tests lintian.
+.PP
+Diese Seite dient hauptsächlich dem Testen von latin1-Buchstaben, wie äöüß
+in Manpages.


Reply to: