[Bug 1322968] Re: Changing country leads to invalid locale

dotancohen 1322968 at bugs.launchpad.net
Sun Nov 9 09:12:21 UTC 2014


To illustrate the severity of this bug, one cannot even use simple Perl
one-liners:

<pre>
$ perl -pi -e 's/ \t/\t/g' foo.csv > bar.csv 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en:he:en",
        LC_ALL = "",
        LC_PAPER = "en_IL.UTF-8",
        LC_ADDRESS = "en_IL.UTF-8",
        LC_MONETARY = "en_IL.UTF-8",
        LC_NUMERIC = "en_IL.UTF-8",
        LC_TELEPHONE = "en_IL.UTF-8",
        LC_IDENTIFICATION = "en_IL.UTF-8",
        LC_MEASUREMENT = "en_IL.UTF-8",
        LC_TIME = "en_DK.utf8",
        LC_NAME = "en_IL.UTF-8",
        LANG = "en_IL.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

$ wc -l bar.csv 
0 bar.csv
</pre>

Great, so where is en_IL.UTF-8 set? I have no idea:
<pre>
$ pwd                                                                                                                                      
/home/dotancohen
$ grep -r en_IL *
$
</pre>

Now that I've found Calabacin's linked issue on AskUbuntu.com, I know that it is here, but as we've seen Grep cannot find it:
<pre>
$ cat ~/.kde/env/setlocale.sh
export LANG=en_IL.UTF-8                                                                                                                                
export LANGUAGE=en:he:en                                                                                                                               
export LC_NUMERIC=en_IL.UTF-8                                                                                                                          
export LC_TIME=en_IL.UTF-8                                                                                                                             
export LC_MONETARY=en_IL.UTF-8                                                                                                                         
export LC_PAPER=en_IL.UTF-8                                                                                                                            
export LC_IDENTIFICATION=en_IL.UTF-8                                                                                                                   
export LC_NAME=en_IL.UTF-8                                                                                                                             
export LC_ADDRESS=en_IL.UTF-8                                                                                                                          
export LC_TELEPHONE=en_IL.UTF-8                                                                                                                        
export LC_MEASUREMENT=en_IL.UTF-8 
</pre>

Where did those definitions come from?

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kde-runtime in Ubuntu.
https://bugs.launchpad.net/bugs/1322968

Title:
  Changing country leads to invalid locale

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kde-runtime/+bug/1322968/+subscriptions




More information about the kubuntu-bugs mailing list