Re: Warnings

Eric Pozharski <[email protected]>
Newsgroups comp.lang.perl.misc
Organization A noiseless patient Spider
Message-ID <[email protected]>
with <[email protected]> db wrote:
> On 14.07.2023 17.43, Thomas Dorner wrote:
>> db <[email protected]> writes:

>>> When I run a script that runs gnuplot - and only such scripts - I
>>> get these warnings
>>>
>>> perl: warning: Setting locale failed.
>>> perl: warning: Please check that your locale settings:
>>>          LANGUAGE = "",
>>>          LC_ALL = (unset),
>>>          LANG = "da_DK.UTF-8"
>>>      are supported and installed on your system.
>>> perl: warning: Falling back to the standard locale ("C").
>>>
>>> I am working under Kubuntu Linux. What do I have to do to get rid of
>>> these warnings? The script then goes on to work, but this is
>>> annoying.
>> You probably need to activate (remove comment sign) your danish
>> locale in /etc/locale.gen and rerun locale-gen (as stated in
>> /etc/locale.gen).
>> Best regards, Thomas
> It isn't there to uncomment. Can I just add it as a new line?  What do
> the other two mean, LANGUAGE = "" and LC_ALL = (unset) ?  Should I add
> all three lines?

(short answer)  You are on your own.

(standard answer)  'perldoc perllocale', read it.  (It's hard to
understand, yes).

(bullshit answer)  How you run mysterious script and your operating
system are desynchronized.  I suspect, something resets environment for
mysterious script and/or child processes (because fsck you;  maybe
grounded in security or whatnot).  Then sneaks (or inherits, who knows)
$LANG.  That $LANG refers to locale that is missing from your system
(for whatever reasons).

Now, there are multiple goals to choose.  And, respectfully, multiple
approaches to the goal you choosed.  It's up for you to decide.

But foremost.  How locale and environment are handled and maintained
heavily depends on (and is specific to) your operating system.  No,
linux is just a kernel.  No, GNU/Linux doesn't say anything.  No,
Kubuntu (or whatever sister) isn't that widespread.

IOW, your problem (if any) has nothing to do with perl or Perl.  Please
disregard standard answer.

P.S.  gnuplot?  Insert here thatsnameihaventheardforlong.jpg

-- 
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.