9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Aharon Robbins <arnold@skeeve.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] u9fs and va_copy()
Date: Mon, 20 Sep 2004 12:02:18 +0300	[thread overview]
Message-ID: <200409200902.i8K92Ig9000796@skeeve.com> (raw)

> I also have implementations of the
> POSIX %4$d stuff and %'d stuff, with plans for %'f.  Joy.

It's a trip, ain't it?  I did the %4$d stuff for gawk, which allows
i18n-ing an awk program.  T'was a pain.

The %'d stuff isn't terrible, and I'm lucky that I can punt to sprintf
for %'f and the other floating point formats.  (Quote, Let someone else
do the hard part, Unquote :-)

I have to wonder if the POSIX people got this stuff right.  The recent
versions of gawk follow the POSIX standard, which says that floating
point numbers *in the text of the awk program* always use `.' for the
radix point, but use the locale's radix point for *input and output data*.

Fine and good, but I have gotten complaints from people in non-C locales
wondering why their data is no longer interpreted by gawk the way it
used to be...

This whole area is one where you're damned if you do, and damned if you don't.

Whatever,

Arnold


             reply	other threads:[~2004-09-20  9:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20  9:02 Aharon Robbins [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-09-16 14:49 jmk
2004-09-16 15:24 ` Rob Pike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200409200902.i8K92Ig9000796@skeeve.com \
    --to=arnold@skeeve.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).