Re: [sr #111166] ngettext syntax

2025-02-22 Thread Robert Elz
Date:Sat, 22 Feb 2025 09:48:29 +0100 From:Andreas Schwab Message-ID: <87r03q5pr6@linux-m68k.org> | On Feb 22 2025, Phi Debian wrote: | > I forgot to mention your trick to nuke the fmt reuse still works | > $ printf '%s %s %s %999$s' A B C D E F G | > A B C

Re: [sr #111166] ngettext syntax

2025-02-22 Thread Phi Debian
On Sun, Feb 23, 2025 at 12:34 AM Robert Elz wrote: > Date:Sat, 22 Feb 2025 09:48:29 +0100 > From:Andreas Schwab > Message-ID: <87r03q5pr6@linux-m68k.org> > > | On Feb 22 2025, Phi Debian wrote: > | > I forgot to mention your trick to nuke the fmt reuse still

Re: [sr #111166] ngettext syntax

2025-02-22 Thread Phi Debian
On Fri, Feb 21, 2025 at 8:52 PM Chet Ramey wrote: > On 2/21/25 1:37 PM, Phi Debian wrote: > > > > I got that behavior with Version AJM 93u+m/1.1.0-alpha 2022-07-31. > > I just updated my version using macports and I get the same behavior as > you with Version AJM 93u+m/1.0.10 2024-08-01. So it lo

Re: [sr #111166] ngettext syntax

2025-02-22 Thread Phi Debian
On Sat, Feb 22, 2025 at 9:49 AM Andreas Schwab wrote: > On Feb 22 2025, Phi Debian wrote: > > > I forgot to mention your trick to nuke the fmt reuse still works > > > > $ printf '%s %s %s %999$s' A B C D E F G > > A B C > > As long as NL_ARGMAX >= 999. > Sounds like I was over optimistic $ echo

Re: [sr #111166] ngettext syntax

2025-02-22 Thread Andreas Schwab
On Feb 22 2025, Phi Debian wrote: > I forgot to mention your trick to nuke the fmt reuse still works > > $ printf '%s %s %s %999$s' A B C D E F G > A B C As long as NL_ARGMAX >= 999. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC

Re: [sr #111166] ngettext syntax

2025-02-22 Thread Robert Elz
Date:Sat, 22 Feb 2025 09:48:29 +0100 From:Andreas Schwab Message-ID: <87r03q5pr6@linux-m68k.org> | As long as NL_ARGMAX >= 999. A correction - I just checked the POSIX spec again, and it appears that they copied the text from printf(3) into printf(1) - that sim