Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2006 21:16:07 +0100
From:      Olivier Mueller <om-lists-bsd@omx.ch>
To:        freebsd-stable@freebsd.org
Subject:   linux locales to freebsd: symlink to make php setlocale() happy ? 
Message-ID:  <4685C92E-8B28-493A-BBFB-79A50F617970@omx.ch>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4685C92E-8B28-493A-BBFB-79A50F617970>