Hi! On Sun, Jun 15, 2008 at 11:46:28AM -0700, F. Caulier wrote: >[...]
>I tried to figure out why this problem occurs and >following to that I noticed that this perllocale >warning only comes up when dropping a pkg_* directly >in xterm. When using screen in an xterm and dropping >pkg_* to it everything will work fine. Same for tty >shells without X where everything works fine too. >I don't know much about this terminal stuff, but if >everything beside XTerm works fine, could it be that >XTerm itself and not the locales are the problems' >source? Maybe XTerm doesn't manage to pass on the >locales correctly? I don't get those warnings in xterm directly, either. Try env | egrep 'LANG|LC_' in xterm. That shows your environment settings. Then look for where those variables are set. The locations depend on your shell. /etc/profile, /etc/csh.*, /etc/ksh.kshrc, $HOME/.profile, $HOME/.login, $HOME/.bash*. grep them for LANG and LC_ For me, using the default (i.e. LANG and LC_... unset, which is the same as if they were set to C) works well. Could be screen just filters those settings out. Could be that xterm executes a login shell and screen not or vice versa. >Some questions: >- Is this bug a dangerous one or can I ignore it >safely? Probably not dangerous. >- Is this a bug related to XTerm? No. >- Should I set the LC_TYPE and LANG variables in >/etc/login.conf? (Is this a clean solution?) No. >- If I want to get the OpenBSD's default locale (is >this C/POSIX or another one?) back what file should I >link to whom? (Following Pieter's workaround) No link. Just unset the environment variables in your shell startup files. Use the default /etc/profile etc. Setup your shell startup files in the home directories to *not* change the LANG and LC_... environment variables. >- What about copying a CL_TYPE file from [0] in to the >concerned directory which is listed by perl? >[0] >http://www.openbsd.org/cgi-bin/cvsweb/src/share/locale/ctype/?only_with_tag=OPENBSD_4_3_BASE What's CL_TYPE? locate CL_TYPE yielded nothing, even with a source tree and a CVS repository installed. Kind regards, Hannah.

