[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] Bug in one of examples in doc/gawktexi.in: dncgettext without
From: |
Sergey Tselikh |
Subject: |
[bug-gawk] Bug in one of examples in doc/gawktexi.in: dncgettext without a number |
Date: |
Wed, 9 Nov 2016 20:45:44 +1000 |
There is a bug in one of examples in doc/gawktexi.in:
a number was not given to dncgettext(...) as parameter at lines 27379-27389.
Patch follows (created for doc/gawktexi.in from gawk-4.1.3.tar.gz):
--- gawktexi.in 2016-11-09 20:24:22.890365392 +1000
+++ gawktexi.in 2016-11-09 20:23:26.996367884 +1000
@@ -27379,10 +27379,12 @@
@example
if (groggy)
message = dcngettext("%d customer disturbing me\n",
- "%d customers disturbing me\n", "adminprog")
+ "%d customers disturbing me\n",
+ ncustomers, "adminprog")
else
message = dcngettext("enjoying %d customer\n",
- "enjoying %d customers\n", "adminprog")
+ "enjoying %d customers\n",
+ ncustomers, "adminprog")
printf(message, ncustomers)
@end example
~~~
Sergey Tselikh <address@hidden>
- [bug-gawk] Bug in one of examples in doc/gawktexi.in: dncgettext without a number,
Sergey Tselikh <=