delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Reply-To: | Cygwin List <cygwin AT cygwin DOT com> |
Message-Id: | <6.1.0.6.0.20040605005926.03244668@pop.theworld.com> |
X-Sender: | |
Date: | Sat, 05 Jun 2004 01:01:10 -0400 |
To: | Laszlo Ersek <LACOS AT ludens DOT elte DOT hu>, cygwin AT cygwin DOT com |
From: | Larry Hall <cygwin-lh AT cygwin DOT com> |
Subject: | Re: Thousands' grouping flag in printf() format string |
In-Reply-To: | <Pine.VMS.3.91-2.1040604200929.50295D-100000@ludens.elte.hu > |
References: | <Pine DOT VMS DOT 3 DOT 91-2 DOT 1040604200929 DOT 50295D-100000 AT ludens DOT elte DOT hu> |
Mime-Version: | 1.0 |
At 02:18 PM 6/4/2004, you wrote: >I'd like to ask whether there is any intention to implement the X/Open >extension ' (0x27) printf() format flag. (Numbered argument specifications >work (thanks to Jeff Johnston), and they are an X/Open extension too.) > >I encountered this problem using cygwin-1.5.10-3 on an XP. > >Illustration: > >-------- > >#define _XOPEN_SOURCE > >#include <stdio.h> >#include <assert.h> >#include <locale.h> > >int main(void) >{ > assert(setlocale(LC_NUMERIC, "")); > > /* This works. */ > printf("%1$d %1$d\n", 1000); > > /* This does not, even if LC_NUMERIC is C. */ > printf("%'d\n", 1001); > > return 0; >} > >-------- > > >Thank you > >Laszlo Ersek The target for Cygwin is POSIX. That said, if someone were to submit a patch to support the construct you're looking for, I'm sure it would be thoughtfully considered (i.e. PTC ;-) ) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |