F. Caulier wrote:
I get the following when I (as root and standard user)
execute pkg_info, pkg_add or pkg_delete with Xorg on:
# pkg_info
perl: warning: Setting locale failed.
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.
perl: warning: Falling back to standard locale ("C").
<USUAL/NORMAL OUTPUT FOLLOWS>
If I do this directly in a ttyCx when Xorg is off, I
don't get any error messages.
The point is that, I didn't changed anything related
locales and I couldn't find any config files where
these locales are specified. So I'm wondering why this
problem appears if I didn't change anything.
(Obviously I must've changend something without seeing
it, but what and where?)
If I manually set/export LC_ALL and LANG as C, Perl
stops complaining.
How can I fix this problem?
I'm using OpenBSD-4.3, GENERIC Kernel and pdksh.
Supplementary question, but as we are on the subject:
would it be correct to edit /etc/login.conf and add the variables under
\:default
(a la FreeBSD)
now, as /usr/share/locale/en_US.UTF-8 is empty,
I guess the fallback would be C
is it best to leave LC_TYPE to C or dus a setting to en_US.UTF-8
makes a different behaviour (as setting an option to UTF-8)
Will try some Perl modules as soon as I get a chance to re-boot.