Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 24083 invoked from network); 26 Mar 2007 19:27:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2007 19:27:53 -0000 Received: (qmail 58482 invoked by uid 500); 26 Mar 2007 19:27:55 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 58418 invoked by uid 500); 26 Mar 2007 19:27:55 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 58405 invoked by uid 99); 26 Mar 2007 19:27:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2007 12:27:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2007 12:27:46 -0700 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l2QJRNr3005111 for ; Mon, 26 Mar 2007 15:27:23 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l2QJRLet027312 for ; Mon, 26 Mar 2007 15:27:22 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.13.8/8.13.7) with ESMTP id l2QJRHwV021975 for ; Mon, 26 Mar 2007 20:27:17 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.8/8.13.8/Submit) id l2QJRHh2021974 for dev@httpd.apache.org; Mon, 26 Mar 2007 20:27:17 +0100 Date: Mon, 26 Mar 2007 20:27:17 +0100 From: Joe Orton To: dev@httpd.apache.org Subject: Re: i18n support Message-ID: <20070326192716.GA21737@redhat.com> Mail-Followup-To: dev@httpd.apache.org References: <20070325150942.3205d858.mba2000@ioplex.com> <20070326132357.5e8f4ea2.mba2000@ioplex.com> <46080485.1070705@rowe-clan.net> <20070326140052.3901e256.mba2000@ioplex.com> <20070326142628.6930dadb.mba2000@ioplex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070326142628.6930dadb.mba2000@ioplex.com> User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Mar 26, 2007 at 02:26:28PM -0400, Michael B Allen wrote: > However, from searching the archives I recall some comments that it was > perhaps inappropriate to use anything but the C locale because globally > changing the locale might yield non-determinisitic behavior. Is that > true? Or is it perfectly save for someone to run in de_DE.ISO-8859-1 > for example? There are a couple of issues here: 1) if your module is used in a thread-based server, changing the (process global) locale from one thread will affect all the threads in the process 2) there are some places in httpd which use locale-specific string comparisons against strings coming from the user and network. Changing the locale can have "interesting" effects on those comparisons, depending on the specific locale used. (the Turkish locale is a nice example, where "i" and "I" don't compare as case-insensitive equals) So yes, the general recommendation to not change the locale is a good one. A library which only works in a *specific* locale is rather awkward. joe