IBM Support

perl: warning: Setting locale failed

Troubleshooting


Problem

This technote provides a workaround related to a Perl issue that reflects warnings in the IBM® Rational® ClearCase® logs specifically around the Scheduled Jobs.

Symptom


All ClearCase operations are working as expected; however, a warning appears in the logs after running Scheduled Jobs (such as shipping poll, sync export, weekly VOB scrubbing and others).

The warning appears as follows:

07/02/2006 12:55:00 AM albd_server(728): Job 13 "Daily MultiSite Receive" (4588) Completed: OK but with messages:



"perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
(possibly more locale environment variables)
LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Cause


The cause of the problem is related to your particular Perl locale handling configuration. Review Perl documentation on locale handling at
http://www.perl.com/doc/manual/html/pod/perllocale.html for more information.

Resolving The Problem



In the example above, the LC_ALL and LANG variables are unset. Attempt to set these variables on your host using the appropriate instructions in the Perl documentation to guide you.

If setting these variables do not stop the warnings in the ClearCase logs, you can apply the below workaround which is outlined in the above Perl documentation to ignore the Perl warnings.

WORKAROUND:

Set the environment variable PERL_BADLANG to 0 (zero) and restart the ClearCase services.

The PERL_BADLANG variable suppresses Perl's warning about failed locale settings at startup. Failure can occur if the locale support in the operating system is lacking (broken) in some way--or if you mistyped the name of a locale when you set up your environment. If this environment variable is absent, or has a value that does not evaluate to integer zero--that is, ``0'' or ``''-- Perl will complain about locale setting failures.

Note: PERL_BADLANG only gives you a way to hide the warning message. The message tells about some problem in your system's locale support, and you should investigate what the problem is.


[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Utilities and Tools","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2003.06.00;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Scheduler","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21241025