Re: HEADS UP: LC_CTYPE format changed

From: Tai-hwa Liang (avatar_at_mmlab.cse.yzu.edu.tw)
Date: 03/03/05

  • Next message: Robert Watson: "Re: FreeBSD 5.3 crash (core with debug symbols available)"
    Date: Thu, 3 Mar 2005 21:27:33 +0800 (CST)
    To: Ruslan Ermilov <ru@freebsd.org>
    
    

    On Thu, 3 Mar 2005, Ruslan Ermilov wrote:
    > On Thu, Mar 03, 2005 at 10:28:41AM +0800, Tai-hwa Liang wrote:
    >> On Sun, 27 Feb 2005, Ruslan Ermilov wrote:
    >>> I've just committed changes that modify the format of LC_CTYPE
    >>> files. Next time when you buildworld/installworld, please do
    >>> it without -DNO_CLEAN, or at least remove the contents of
    >>> /usr/obj/usr/src/share/mklocale/.
    >>
    >> Not sure if I missed something. But after making a clean buildworld
    >> & installworld, perl always pops with following warnings:
    >>
    >> perl: warning: Setting locale failed.
    >> perl: warning: Please check that your locale settings:
    >> LC_ALL = (unset),
    >> LC_CTYPE = "zh_TW.Big5",
    >> LANG = "zh_TW.Big5"
    >> are supported and installed on your system.
    >> perl: warning: Falling back to the standard locale ("C").
    >>
    >> Re-building perl5.8 from ports doesn't seem to help.
    >>
    > I don't know what's your problem (make sure your `which perl`
    > isn't linked to libc.so.5), but it definitely works here:
    >
    > : $ hostname
    > : sledge.freebsd.org
    > : $ uname -mir
    > : 6.0-CURRENT amd64 SLEDGE
    > : $ grep __FreeBSD_version /usr/include/osreldate.h
    > : #undef __FreeBSD_version
    > : #define __FreeBSD_version 600019
    > : $ env LC_ALL="unknown" perl -e exit
    > : perl: warning: Setting locale failed.
    > : perl: warning: Please check that your locale settings:
    > : LC_ALL = "unknown",
    > : LANG = (unset)
    > : are supported and installed on your system.
    > : perl: warning: Falling back to the standard locale ("C").
    > : $ env LC_ALL="zh_TW.Big5" perl -e exit
    > : $
    >
    > (Also check /etc/libmap.conf.)

    > uname -mir
    6.0-CURRENT i386 f22-r40
    > grep __FreeBSD_version /usr/include/osreldate.h
    #undef __FreeBSD_version
    #define __FreeBSD_version 600019
    > ls -la /etc/libmap.conf
    ls: /etc/libmap.conf: No such file or directory
    > ldd `which perl`
    /usr/bin/perl:
             libperl.so => /usr/local/lib/perl5/5.8.6/mach/CORE/libperl.so (0x28075000)
             libm.so.3 => /lib/libm.so.3 (0x28176000)
             libcrypt.so.2 => /lib/libcrypt.so.2 (0x2818a000)
             libutil.so.4 => /lib/libutil.so.4 (0x281a2000)
             libc.so.6 => /lib/libc.so.6 (0x281ae000)
    > env LC_ALL="unknown" perl -e exit
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
             LC_ALL = "unknown",
             LC_CTYPE = "zh_TW.Big5",
             LANG = "zh_TW.Big5"
         are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    > env LC_ALL="zh_TW.Big5" perl -e exit
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
             LC_ALL = "zh_TW.Big5",
             LC_CTYPE = "zh_TW.Big5",
             LANG = "zh_TW.Big5"
         are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    > unsetenv LC_CTYPE && env LC_ALL="zh_TW.Big5" perl -e exit
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
             LC_ALL = "zh_TW.Big5",
             LANG = "zh_TW.Big5"
         are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    > unsetenv LANG && env LC_ALL="zh_TW.Big5" perl -e exit
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
             LC_ALL = "zh_TW.Big5",
             LANG = (unset)
         are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    > env LC_ALL="" perl -e exit
    >
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Robert Watson: "Re: FreeBSD 5.3 crash (core with debug symbols available)"

    Relevant Pages

    • Language problem with knoppix
      ... package it gives the error message On Language Like: ... perl: warning: Setting locale failed. ...
      (Debian-User)
    • Re: xorg 7.2 & environment variables set in login.conf
      ... can't utilize the LANG setting either. ... perl: warning: Setting locale failed. ...
      (freebsd-current)
    • Glibc i386 vs i686 screwup
      ... Starting httpd: perl: warning: Setting locale failed. ... perl: warning: Please check that your locale settings: ...
      (RedHat)
    • locale errors
      ... how do I fix this: ... perl: warning: Setting locale failed. ...
      (Debian-User)
    • Re: UTF8: cgi ist staerker als ich
      ... use locale ist sogar äusserst gefährlich und unberechenbar. ... Also vergiss Locales und verwende den Unicode-Support von Perl. ... ist dass Du nicht 256 verschiedene Zeichen ... Beim encode kodierst Du Zeichen entsprechend einem bestimmten Encoding ...
      (de.comp.lang.perl.cgi)