Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 57072 invoked from network); 20 Oct 2006 14:39:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2006 14:39:40 -0000 Received: (qmail 27298 invoked by uid 500); 20 Oct 2006 14:39:31 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 27262 invoked by uid 500); 20 Oct 2006 14:39:31 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 27224 invoked by uid 99); 20 Oct 2006 14:39:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 07:39:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.82.213.172] (HELO exkiv.kyiv.vdiweb.com) (212.82.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 07:39:23 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [PATCH] printf.cpp "%{As}" Date: Fri, 20 Oct 2006 17:39:33 +0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] printf.cpp "%{As}" Thread-Index: Acb0VY8yJmIufJYoRt6h+MlkuhzPPA== From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N To implement the function rw_process_create(const char* path, char* const argv[]) using the rw_process_create(const char* cmd, ...) I need to concatenate the argv array into solid string with using ' ' as delimiter. The "%{As}" format uses ',' as delimiter. Below is a small patch to get ' ' as delimiter using the "%{ As}" format: ------------------------ Index: C:/stdcxx/tests/src/printf.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- C:/stdcxx/tests/src/printf.cpp (revision 465232) +++ C:/stdcxx/tests/src/printf.cpp (working copy) @@ -2255,7 +2255,7 @@ =20 const unsigned pound =3D spec.fl_pound; spec.fl_pound =3D 0; - n =3D _rw_fmtstr (spec, buf, ",", 1); + n =3D _rw_fmtstr (spec, buf, spec.fl_space ? " " : ",", 1); spec.fl_pound =3D pound; =20 if (n < 0) ------------------------ Farid.