Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57972 invoked from network); 2 Oct 2013 18:38:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2013 18:38:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.223.178 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.223.178 mail-ie0-f178.google.com Received: from [209.85.223.178] ([209.85.223.178:53992] helo=mail-ie0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/BD-23255-5286C425 for ; Wed, 02 Oct 2013 14:38:29 -0400 Received: by mail-ie0-f178.google.com with SMTP id to1so2750404ieb.23 for ; Wed, 02 Oct 2013 11:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=VS6v/C/UNsHr6nmCTM50S3gG/D126PfT+A0dsvVTMLE=; b=k4jEKxem78j9lKc3PiP43Sbskv29a+ii9ZGCCVMoPg/2XG3D6EOa/5mzqgMwXmYcl7 srCFewXGCsYLGFSynd6DWGRXQFsp5+/v4rBY5yFzwuMohnIy6M1b2NzeZDKWVGv9yFtz n+/VqPKeQOcXo9b0AY7OwZ+ingNyADcTetazg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=VS6v/C/UNsHr6nmCTM50S3gG/D126PfT+A0dsvVTMLE=; b=UTKQ+qPHQ53+uvTuDLp6K2dTwE+CUsRXhnXlUKCbBNr67m4fbHfisO5SkqFDHjlNBA LsQ68NzNlPwsjFhDrAvWxcaWMuM4QPRr3gVnbY2xOUtH3f1n+7arfAW+4Z+ZYMQTUyBe c4eye7gawwhcfIigl35mO1pOO6CaLRYQ1ieusNUJ6yxmEqevKZ52Ap4h6I2u9HAU1DEr 2n2jKk3Uze0ZAbSxW0IGJu5/w1m+woW5S63/gLV+H1AWtAkEdFbObjOeTf+QnLBNL9IW L1ZOzHGEfXMeMyTMwiLhi9U5CJ497N5AycgVw7qe3GNTcYBV3+f7gdUwBUvykIpcWCPp 9GJQ== X-Gm-Message-State: ALoCoQmgwvWSAw2JdzqLQQDJTBrfuyPe8gKmHyKfSj4WiAwQRF+9GSN0LKbVEs6Rs2ddrOtnz7Ja X-Received: by 10.50.61.241 with SMTP id t17mr2870596igr.28.1380739106662; Wed, 02 Oct 2013 11:38:26 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.42.206.208 with HTTP; Wed, 2 Oct 2013 11:38:06 -0700 (PDT) In-Reply-To: <524C5E81.6030907@oracle.com> References: <524C5E81.6030907@oracle.com> Date: Wed, 2 Oct 2013 11:38:06 -0700 X-Google-Sender-Auth: P_VVXNXXNi_teNoRMBtIFGuJzw0 Message-ID: To: Christopher Jones Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Locale-independent double-to-string cast From: aharvey@php.net (Adam Harvey) On 2 October 2013 10:57, Christopher Jones w= rote: > On 10/02/2013 10:26 AM, Nikita Popov wrote: >> I'd like to change our double-to-string casting behavior to be >> locale-independent and would appreciate some opinions as to whether you >> consider this feasible. > > I'd like to see float/double casts recognize the locale's decimal > separator. That's an interesting idea, and arguably one that's more in line with what PHP has been doing. I'd be really interested to hear from people in countries where the decimal separator is a comma, since I don't have any experience with this myself as an Anglophone =E2=80=94 do you run PHP in your native locale= , and if so, would it be better to always have dots, as Nikita suggests, or support parsing numbers with commas? (Or some combination therein.) Adam