bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Bug in one of examples in doc/gawktexi.in: dncgettext wit


From: arnold
Subject: Re: [bug-gawk] Bug in one of examples in doc/gawktexi.in: dncgettext without a number
Date: Wed, 09 Nov 2016 05:25:15 -0700
User-agent: Heirloom mailx 12.4 7/29/08

Thanks. I will get this into the repo.

Are you working your way through the manual? (Very cool, if so.) If
that's the case, I may wait until you're done submitting fixes...

Thanks,

Arnold

Sergey Tselikh <address@hidden> wrote:

> 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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]