Fix bugs when printing plurals of numbers that are not
commitb96f5ea4925854db9eae61f98a7ec44568ecae7d
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Aug 2006 19:36:46 +0000 (16 19:36 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Aug 2006 19:36:46 +0000 (16 19:36 +0000)
tree913918a48168b6e77f64b65f61e9d42b791f1ab2
parentf048f049e7dd531e207c630088d050c376b39feb
Fix bugs when printing plurals of numbers that are not
unsigned long int values.
* src/system.h (select_plural): New function.
* src/md5sum.c (digest_check): Use select_plural to avoid bug.
* src/uptime.c (print_uptime): Likewise.
* src/dd.c (print_stats): Likewise.  Also, don't use ngettext to
print a floating point number, as reducing to 0 or 1 doesn't work
for some languages.  Instead, just use "s" for seconds since it
doesn't need a plural form.
ChangeLog
src/dd.c
src/md5sum.c
src/system.h
src/uptime.c