pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48127: perl



>Number:         48127
>Category:       pkg
>Synopsis:       perl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 16 11:15:00 +0000 2013
>Originator:     Alan Barrett
>Release:        NetBSD 6.99.23
>Organization:
Not much
>Environment:
System: NetBSD 6.99.23 i386
Architecture: i386
Machine: i386
>Description:
There is something wrong with perl's use of locales, or with NetBSD's
implementation of locales, such that perl does not work proerly with
LANG=en_US.UTF=8 on NetBSD.  Perl prints several lines of messages to
stderr, which interferes with scripts that care about the contents of
stderr.

I am filing this under "Category: pkg" in case it's a perl 
problem.  If it's really a NetBSD problem then I suppose this PR 
should be closed and a new PR should be created with a simple test 
case that doesn't involve perl.

>How-To-Repeat:
$ uname -srm
NetBSD 6.99.23 i386
$ pkg_info -e perl
perl-5.16.2nb3
$ unset LANG LC_CTYPE LC_COLLATE LC_TIME LC_NUMERIC LC_MONETARY LC_MESSAGES 
LC_ALL
$ unset PERL_BADLANG
$ LANG=en_US.UTF-8 perl -e 1
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

>Fix:
workaround:
$ PERL_BADLANG=set ; export PERL_BADLANG



Home | Main Index | Thread Index | Old Index