Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85662 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67475 invoked from network); 1 Apr 2015 19:32:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Apr 2015 19:32:14 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.173 mail-pd0-f173.google.com Received: from [209.85.192.173] ([209.85.192.173:35554] helo=mail-pd0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/E8-21906-DB74C155 for ; Wed, 01 Apr 2015 14:32:13 -0500 Received: by pddn5 with SMTP id n5so64567107pdd.2 for ; Wed, 01 Apr 2015 12:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=9AmRhzuun+yCQqFo0L60mv8Qj8xuDUQISMrZEdjoebs=; b=TVlVL3ixv/Hf3EZyh1TCgnWIcA+YGYcqldqLw91/H8C7CQoXkrM6Biq1xJ5rongUAp hX2FW+oYagE1YF8XiIblXFCJAVMsEKFuytfrD1Qgvtdb2aSbpX5pl9BFDPxAhusCMTBR UnMYg8Cs4JlBFrx6WX51s4RzeavYO6e5umKLwGniZ66jbPuOVYll0XdNz5evgTDG1W5R ZhGteu8d2giDN5xN18eWB3mURa42GAlQIREqlEOFXLsZz+KawatFGegllmLOCAj2tJq1 G3c0wDzrsE3qmTW9vOmnHDMOC2RizJ24NwRL/bvVQGEQgI602AS058YMBM5KIUt1Um5/ FgFA== X-Received: by 10.69.13.225 with SMTP id fb1mr81311731pbd.104.1427916730988; Wed, 01 Apr 2015 12:32:10 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id j14sm2903137pbq.29.2015.04.01.12.32.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 12:32:10 -0700 (PDT) Message-ID: <551C47B9.5070709@gmail.com> Date: Wed, 01 Apr 2015 12:32:09 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Dan Ackroyd , Marc Bennewitz CC: "internals@lists.php.net" References: <551C3876.5000004@mabe.berlin> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Deprecate setlocale? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > For Imagick, the issue is that a SVG string was being generated with > something like: > > sprintf(svg, "pos: %f %f", x, y); Yeah that is a problem... Two ways I see to fix it: 1. Reset the locale before it and restore afterwards (non-TS and in general may be problematic) 2. Use other formatting functions like Zend engine ones or some other library. Global state sucks, and that's the reason locale sucks :( -- Stas Malyshev smalyshev@gmail.com