Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17322 invoked by uid 1010); 3 Nov 2004 07:05:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16743 invoked from network); 3 Nov 2004 07:05:01 -0000 Received: from unknown (HELO mgkyb2.nw.wakwak.com) (211.9.231.193) by pb1.pair.com with SMTP; 3 Nov 2004 07:05:01 -0000 Received: from vckyb1.nw.wakwak.com (postfix@vckyb1.nw.wakwak.com [211.9.230.144]) by mgkyb2.nw.wakwak.com (8.13.1/8.13.1/2004-08-10) with SMTP id iA374r9E031322; Wed, 3 Nov 2004 16:04:53 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Received: from at.wakwak.com (at.wakwak.com [211.9.230.135]) by vckyb1.nw.wakwak.com (Postfix) with ESMTP id 4D6243FE02; Wed, 3 Nov 2004 16:04:53 +0900 (JST) Received: from [192.168.0.100] (newcycle.as.wakwak.ne.jp [218.225.209.145]) by at.wakwak.com (8.13.1/8.13.1/2004-10-28) with ESMTP/inet id iA374qeK017135; Wed, 3 Nov 2004 16:04:52 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) In-Reply-To: <41838C66.4040604@ailis.de> References: <41838C66.4040604@ailis.de> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <8EF8081F-2D66-11D9-9893-000A95CE0C62@at.wakwak.com> Content-Transfer-Encoding: 7bit Cc: internals@lists.php.net Date: Wed, 3 Nov 2004 16:04:09 +0900 To: Klaus Reimer X-Mailer: Apple Mail (2.619) Subject: Re: [PHP-DEV] localeconv not working From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) On 2004/10/30, at 21:43, Klaus Reimer wrote: > > I think this explains the misbehaviour. If I do a "setlocale(LC_ALL, > 'de_DE')" then the PHP function resets LC_NUMERIC to "C". So what > chance have I to get the LC_NUMERIC configuration of a specific locale > now? Well, I think there was a good reason to reset LC_NUMERIC to C > but this breaks localeconv(). I want to read the LC_NUMERIC > configuration of the selected locale to use these informations with > the number_format() function but I can't do it because of the above > code. Is there a workaround? Yup, save all the relevant environment variables beforehand and restore them with setlocale() after the localeconv() call. Either way, That's a valid bug that needs attention. Moriyoshi