zsh-users
 help / color / mirror / code / Atom feed
* printf shortcomings
@ 2011-09-27  7:09 Micah Elliott
  2011-09-27  7:51 ` Oliver Kiddle
  0 siblings, 1 reply; 2+ messages in thread
From: Micah Elliott @ 2011-09-27  7:09 UTC (permalink / raw)
  To: Zsh Users

I was looking at `printf(3)` and also this lovely reference
(http://www.pixelbeat.org/programming/gcc/format_specs.html) and
noticed that the "locale thousands grouping" flag (') doesn't appear
to be supported by Zsh's builtin printf. I don't have an important
need for this today, but noticing that it could be pretty useful.

  % printf "%'i" 3210384
  print: %': invalid directive
  % /usr/bin/printf "%'i" 3210384
  3,210,384%

Is the prescription to just fall back to the system printf when
certain complex formats are needed? Or are there plans to implement
(most) everything from the system version? I see LC_NUMERIC
(zshparam(1)) hinting at the "thousands separator" but I'm not seeing
where that gets used.

--
twitter:@MicahElliott  |  email:mde@MicahElliott.com  |  http://membean.com
Remember your words on exam day with Membean!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-27  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-27  7:09 printf shortcomings Micah Elliott
2011-09-27  7:51 ` Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).