Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30250 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82322 invoked by uid 1010); 19 Jun 2007 12:31:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82301 invoked from network); 19 Jun 2007 12:31:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2007 12:31:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.5 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Received: from [82.94.239.5] ([82.94.239.5:48981] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/94-46635-4ACC7764 for ; Tue, 19 Jun 2007 08:31:37 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id l5JCVSxp028091 for ; Tue, 19 Jun 2007 14:31:29 +0200 Date: Tue, 19 Jun 2007 14:31:29 +0200 (CEST) X-X-Sender: derick@kossu.ez.no To: PHP Developers Mailing List In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] snprintf/var_export issues From: derick@php.net (Derick Rethans) On Fri, 15 Jun 2007, Derick Rethans wrote: > 2. Add a new modifier "H" or "L" that is like G, but > locale-insensitive. I implemented this as the "H" modifier. > Notes: > > - _build_trace_args (from Zend/zend_exceptions.c) seems also to be > affected, as it uses the G modifier to build argument lists as string > for exception traces. So now it uses the , to separate arguments AND > as float decimal sep in case of a de_DE locale. This one can not be fixed, as it uses zend_sprintf() which just wraps around sprintf() incase sprintf is not "broken". sprintf() doesn't have a format modifier for this purpose, so what we can do here is 1. always use our sprintf() implementation; 2. use php_printf() or 3. ignore it. Derick