please kick out that annoying locale warning

Bug #1078294 reported by Andreas Oberritter
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
perl (Debian)
Fix Released
Unknown
perl (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Whenever perl gets invoked, e.g. when dpkg runs, perl prints this annoying multi-line warning, if some of the selected locales aren't available:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = "en_US:en",
 LC_ALL = (unset),
 LC_PAPER = "de_DE.UTF-8",
 LC_ADDRESS = "de_DE.UTF-8",
 LC_MONETARY = "de_DE.UTF-8",
 LC_NUMERIC = "de_DE.UTF-8",
 LC_TELEPHONE = "de_DE.UTF-8",
 LC_IDENTIFICATION = "de_DE.UTF-8",
 LC_MEASUREMENT = "de_DE.UTF-8",
 LC_TIME = "de_DE.UTF-8",
 LC_NAME = "de_DE.UTF-8",
 LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

I'm unable to see why only perl has to display such a warning, but all programs written in another language just handle this fallback silently.

It's not a big deal on a desktop system, where you usually just install the missing locale - or where you already have it installed, because otherwise your environment wouldn't be set like this.

But if you ssh to remote machines, then your language settings automatically get forwarded. On those remote machines it might be impossible to install the missing locales due to restricted user permissions or due to limited space on embedded systems.

Changed in perl (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in perl (Ubuntu):
status: New → Confirmed
Revision history for this message
Lars Vogel (lars-vogel) wrote :

Is their a know workaround to get rid of this error message?

Revision history for this message
Andreas Oberritter (mtdcr) wrote :

For the error message above: sudo locale-gen de_DE.UTF-8 en_US.UTF-8

Changed in perl (Debian):
status: New → Won't Fix
Changed in perl (Debian):
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.