On Mon, Jun 16, 2008 at 7:00 AM, Hannah Schroeter <[EMAIL PROTECTED]> wrote: > On Sun, Jun 15, 2008 at 03:26:05PM -0600, Philip Guenther wrote: ... >>>> I found a workaround: >>>> # ln -s /usr/share/locale/en_GB.ISO8859-1 >>>> /usr/share/locale/en_US.UTF-8 > >>That seems like a really bad idea to me. UTF-8 and ISO8859-1 are >>fundamentally different: UTF-8 uses variable-length characters while >>ISO8859-* uses fixed-width (8bit) characters. Giving the locale calls >>the same data for those two is likely to result in incorrect behavior >>for all characters >127. Wouldn't it be better to simply not lie and >>just set the locale to en_US.ISO8859-1? > > Doesn't work for me either: > > $ LANG=en_GB.ISO8859-1 perl -e 1 > perl: warning: Setting locale failed. > [...] > $ LANG=en_GB.ISO-8859-1 perl -e 1 > perl: warning: Setting locale failed. > [...]
The specific locale category involved in the original query was LC_CTYPE: > perl: warning: Please check that your locale settings: > LC_ALL = (unset) > LC_CTYPE = "en_US.UTF-8", > LANG = (unset) > are supported and installed on your system. OpenBSD does include LC_CTYPE support for ISO8859-1: $ LC_CTYPE=en_GB.ISO8859-1 perl -e 1 $ Philip Guenther