Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | blp@cs.stanford.edu (Ben Pfaff) |
|---|---|
| Newsgroups | comp.lang.c, comp.std.c |
| Subject | Re: Customizing printf |
| Date | 2011-11-20 11:37 -0800 |
| Message-ID | <8762ieh9f5.fsf@blp.benpfaff.org> (permalink) |
| References | (2 earlier) <jab5gl$b6p$1@reader1.panix.com> <87ipmehbxl.fsf@blp.benpfaff.org> <jabiqs$cbr$1@oravannahka.helsinki.fi> <87aa7qhawm.fsf@blp.benpfaff.org> <861ut2mvoa.fsf@ds4.des.no> |
Cross-posted to 2 groups.
Dag-Erling Smørgrav <des@des.no> writes:
> blp@cs.stanford.edu (Ben Pfaff) writes:
>> Lauri Alanko <la@iki.fi> writes:
>> > http://search.cpan.org/dist/Locale-Maketext/lib/Locale/Maketext/TPJ13.pod
>> Whoever wrote that page did not read the GNU gettext manual,
>> which explains the same problems and shows the solutions to them.
>
> I believe gettext only supports one number per string, so it cannot
> handle the "%d files in %d directories" example. You'd have to rewrite
> it as "I scanned %d directories." + "I found %d files." or something
> similar.
That's true. In practice I have rarely found that to be a
significant limitation.
--
char a[]="\n .CJacehknorstu";int putchar(int);int main(void){unsigned long b[]
={0x67dffdff,0x9aa9aa6a,0xa77ffda9,0x7da6aa6a,0xa67f6aaa,0xaa9aa9f6,0x11f6},*p
=b,i=24;for(;p+=!*p;*p/=4)switch(0[p]&3)case 0:{return 0;for(p--;i--;i--)case+
2:{i++;if(i)break;else default:continue;if(0)case 1:putchar(a[i&15]);break;}}}
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Customizing printf jacob navia <jacob@spamsink.net> - 2011-11-15 14:36 +0100
Re: Customizing printf "Joel C. Salomon" <joelcsalomon@gmail.com> - 2011-11-15 13:07 -0500
Re: Customizing printf Ben Pfaff <blp@cs.stanford.edu> - 2011-11-15 10:10 -0800
Re: Customizing printf jacob navia <jacob@spamsink.net> - 2011-11-15 21:36 +0100
Re: Customizing printf blp@cs.stanford.edu (Ben Pfaff) - 2011-11-15 12:51 -0800
Re: Customizing printf "Joel C. Salomon" <joelcsalomon@gmail.com> - 2011-11-15 18:03 -0500
Re: Customizing printf jgk@panix.com (Joe keane) - 2011-11-20 15:14 +0000
Re: Customizing printf blp@cs.stanford.edu (Ben Pfaff) - 2011-11-20 10:43 -0800
Re: Customizing printf Lauri Alanko <la@iki.fi> - 2011-11-20 19:01 +0000
Re: Customizing printf blp@cs.stanford.edu (Ben Pfaff) - 2011-11-20 11:05 -0800
Re: Customizing printf Dag-Erling Smørgrav <des@des.no> - 2011-11-20 20:38 +0100
Re: Customizing printf blp@cs.stanford.edu (Ben Pfaff) - 2011-11-20 11:37 -0800
Re: Customizing printf jgk@panix.com (Joe keane) - 2011-11-21 22:23 +0000
Re: Customizing printf Ian Collins <ian-news@hotmail.com> - 2011-11-22 11:26 +1300
Re: Customizing printf blp@cs.stanford.edu (Ben Pfaff) - 2011-11-21 14:23 -0800
Re: Customizing printf Kaz Kylheku <kaz@kylheku.com> - 2011-11-21 23:06 +0000
Re: Customizing printf jgk@panix.com (Joe keane) - 2011-11-23 00:09 +0000
Re: Customizing printf blp@cs.stanford.edu (Ben Pfaff) - 2011-11-22 16:16 -0800
Re: Customizing printf Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-11-21 05:29 -0800
Re: Customizing printf jgk@panix.com (Joe keane) - 2011-11-21 22:50 +0000
Re: Customizing printf Lowell Gilbert <lgusenet@be-well.ilk.org> - 2011-11-15 13:13 -0500
Re: Customizing printf "-.-" <none@none.none> - 2011-11-16 14:06 +0100
Re: Customizing printf gazelle@shell.xmission.com (Kenny McCormack) - 2011-11-16 13:40 +0000
Re: Customizing printf Seebs <usenet-nospam@seebs.net> - 2011-11-16 20:18 +0000
Re: Customizing printf Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-11-17 07:54 +0200
csiph-web