Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103700 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36146 invoked from network); 8 Jan 2019 01:09:36 -0000 Received: from unknown (HELO mail.kd2.org) (91.121.181.110) by pb1.pair.com with SMTP; 8 Jan 2019 01:09:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bohwaz.net; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From:Date; bh=yn/ihkfubTEh+vuL0RWEIeAblSM+LPcNMj4V2tjKDRw=; b=f9sE2RhwHXGON9FOiWWuQZzYj8izukAFkhmUH8okNxV/F7Qs8t+N7NJSuIuOEC2vpnCyXDyz8InIsMhIoGLnGMLiQ1QBszlGt+mqImIFk2Dz5X/JrlFteSakNeZtGGy8pocF8q1IIKDjKIuFnzCl/JeVC+95P+w0UNm8TfdMqr4=; Received: from [2a01:e0a:28:d640:e29d:31ff:fe09:979c] (helo=platypus) by mail.kd2.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1ggcgH-0006Xw-Vs for internals@lists.php.net; Mon, 07 Jan 2019 22:43:34 +0100 Date: Mon, 7 Jan 2019 22:43:33 +0100 To: internals@lists.php.net Message-ID: <20190107224333.16ff12b6@platypus> In-Reply-To: References: <94f5feb8-6589-3a0a-2849-7679cec1858c@gmx.de> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authenticated-User: bwz@bohwaz.net X-Authenticator: login X-Invalid-HELO: HELO is no FQDN (contains no dot) (See RFC2821 4.1.1.1) X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) Subject: Re: [PHP-DEV] Inconsistent float to string vs. string to floatcasting From: php@bohwaz.net (BohwaZ) AFAIK, gettext functions do depend on setlocale. I wish so much that it wasn't the case (as you then need to have the locale installed on the system), but it is, so setlocale definetely is quite used in the wild and deprecating it seems a bit far-fetched unless we can actually replace it with something else (better). But gettext has other issues related to being cached in the current process, as you need to restart apache if the compiled .mo files have changed to get the new strings :( Another function that is influenced by setlocale is strftime. This is often the common way to display a date in a different language. So I'm all for deprecating setlocale but before that we would need to have something better for everything that's currently depending on it :) BohwaZ