From owner-freebsd-stable@FreeBSD.ORG Wed Nov 15 20:16:10 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ADD316A40F for ; Wed, 15 Nov 2006 20:16:10 +0000 (UTC) (envelope-from om-lists-bsd@omx.ch) Received: from omega.omnis.ch (omega.omnis.ch [195.134.143.43]) by mx1.FreeBSD.org (Postfix) with SMTP id 97B7E43D49 for ; Wed, 15 Nov 2006 20:16:09 +0000 (GMT) (envelope-from om-lists-bsd@omx.ch) Received: (qmail 11832 invoked from network); 15 Nov 2006 20:16:06 -0000 Received: from 195.134.148.35 ([195.134.148.35]) by omega.omnis.ch ([195.134.143.43]) with ESMTP via TCP; 15 Nov 2006 20:16:06 -0000 Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <4685C92E-8B28-493A-BBFB-79A50F617970@omx.ch> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-stable@freebsd.org From: Olivier Mueller Date: Wed, 15 Nov 2006 21:16:07 +0100 X-Mailer: Apple Mail (2.752.2) Subject: linux locales to freebsd: symlink to make php setlocale() happy ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 20:16:10 -0000 Bonjour, While moving some more customers from a linux to a freebsd-based hosting, like some others I had a problem with php pages using setlocale(). According to 'locale -a', it looks like that for de_DE (german): Linux (suse): de_DE de_DE.utf8 de_DE@euro FreeBSD (6.1): de_DE.ISO8859-1 de_DE.ISO8859-15 de_DE.UTF-8 And in the customers code, the call which hadn't worked anymore is: setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge'). I could tell the customer to update his code and add "de_DE.ISO8859-1" to his setlocale() list, but he will ask me "why isn't it like before?" and on systems with hundreds of virtualhosts (and different customers), this can't really be done. So what would be the "cleanest" solution? Is there an options somewhere to add the "standard" de_DE-like label (xx_XX) to all languages? Or should I use symlinks like: [root@bsd /usr/share/locale]# ln -s de_DE.ISO8859-1 de_DE Regards, Olivier