Fix ngettext calls to use "1" explicitly.
authorTim Retout <diocles@gnu.org>
Tue, 1 Jun 2010 22:22:20 +0000 (23:22 +0100)
committerTim Retout <diocles@gnu.org>
Tue, 1 Jun 2010 22:22:25 +0000 (23:22 +0100)
Fixes Savannah bug #29198.  Patch from Juergen Daubert.

Signed-off-by: Tim Retout <diocles@gnu.org>
ChangeLog
src/main.c

index c14f60289f06d0f78cef18db697fefe16e8d7c59..e29604566da9e38c5e3b9cc3ab8e89da56996755 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-17  Juergen Daubert  <jue@jue.li>
+       * src/main.c: Fix ngettext calls to use '1' explicitly.  Fixes
+       Savannah bug #29198.
+
 2010-03-07  Tim Retout  <diocles@gnu.org>
 
        * src/gsint.h: Remove version_string and ps_version_string.
index 65f756f635fad3de0a698e83a8d68b3c3099bc8a..3ce41d78ffcf4e5f68a7383e65401a67e037d385 100644 (file)
@@ -1768,7 +1768,7 @@ name             width\theight\tllx\tlly\turx\tury\n\
        {
          retval |= 2;
          MESSAGE (0, (stderr,
-                      ngettext("1 line was %s\n",
+                      ngettext("%d line was %s\n",
                                "%d lines were %s\n",
                                num_truncated_lines),
                       num_truncated_lines,
@@ -1780,7 +1780,7 @@ name             width\theight\tllx\tlly\turx\tury\n\
        {
          retval |= 4;
          MESSAGE (0, (stderr,
-                      ngettext("1 character was missing\n",
+                      ngettext("%d character was missing\n",
                                "%d characters were missing\n",
                                num_missing_chars),
                       num_missing_chars));
@@ -1795,7 +1795,7 @@ name             width\theight\tllx\tlly\turx\tury\n\
        {
          retval |= 8;
          MESSAGE (0, (stderr,
-                      ngettext("1 non-printable character\n",
+                      ngettext("%d non-printable character\n",
                                "%d non-printable characters\n",
                                num_non_printable_chars),
                       num_non_printable_chars));