Fix ngettext calls to use "1" explicitly. - enscript - GNU Enscript
 (HTM) git clone git://thinkerwim.org/enscript.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 5c9325447a7405156570a93e701d4970e77d5f72
 (DIR) parent 3a9ad4ae135be5d05e056a805f303d04d63960d2
 (HTM) Author: Tim Retout <diocles@gnu.org>
       Date:   Tue,  1 Jun 2010 23:22:20 +0100
       
       Fix ngettext calls to use "1" explicitly.
       
       Fixes Savannah bug #29198.  Patch from Juergen Daubert.
       
       Signed-off-by: Tim Retout <diocles@gnu.org>
       
       Diffstat:
         M ChangeLog                           |       4 ++++
         M src/main.c                          |       6 +++---
       
       2 files changed, 7 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git 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.
 (DIR) diff --git a/src/main.c b/src/main.c
       @@ -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));