Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26396 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14293 invoked by uid 1010); 7 Nov 2006 08:34:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14277 invoked from network); 7 Nov 2006 08:34:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2006 08:34:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=jochem@iamjochem.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jochem@iamjochem.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iamjochem.com from 194.109.193.121 cause and error) X-PHP-List-Original-Sender: jochem@iamjochem.com X-Host-Fingerprint: 194.109.193.121 mx1.moulin.nl Linux 2.6 Received: from [194.109.193.121] ([194.109.193.121:49537] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/E0-05668-E0540554 for ; Tue, 07 Nov 2006 03:34:30 -0500 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id 4FA241FA8E1; Tue, 7 Nov 2006 09:34:15 +0100 (CET) X-Virus-Scanned: amavisd-new at moulin.nl Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N01mHvFnuumj; Tue, 7 Nov 2006 09:34:12 +0100 (CET) Received: from [192.168.1.101] (bspr.xs4all.nl [194.109.161.228]) by mx1.moulin.nl (Postfix) with ESMTP id 8C5D01FA8D4; Tue, 7 Nov 2006 09:34:12 +0100 (CET) Message-ID: <455044FF.1000905@iamjochem.com> Date: Tue, 07 Nov 2006 09:34:07 +0100 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Michael B Allen CC: internals@lists.php.net References: <20061106221805.770c4ebc.mba2000@ioplex.com> In-Reply-To: <20061106221805.770c4ebc.mba2000@ioplex.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Where to setlocale(3)? From: jochem@iamjochem.com (Jochem Maas) Michael B Allen wrote: > How does one PROPERLY set the locale under which PHP scripts run? Is > it a script level property, if you want. PHP level property, yes. HTTP level property or dont know > inherited from the OS default? the default is inherited from the OS unless something is broken. > > I have a module that converts strings between the locale character > encoding and another encoding. Currently setlocale(LC_CTYPE, NULL) > within a script returns 'C' which is to say the locale is not set. 'C' = Posix std locale. > > Where do I look? what do you want to find? ;-) > > Thanks, > Mike >