Reply
Thread Tools
Posts: 99 | Thanked: 42 times | Joined on Jan 2011 @ Germany
#11
I just found this line in /etc/profile.d/language.sh:

unset LC_ALL

???
 
Posts: 508 | Thanked: 623 times | Joined on Jul 2012 @ Mexico/Germany
#12
Have the same issue. Mexican N9 with german interface

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

Any advice?
 
Posts: 1,797 | Thanked: 4,223 times | Joined on Feb 2011 @ Germany
#13
Originally Posted by chilango View Post
LANGUAGE = (unset),
LC_ALL = (unset),

...

Any advice?
Check in /etc/profile.d if you have a language.sh script doing unset LC_ALL.

If so, then do dpkg -S /etc/profile.d/language.sh to identify the *****, if any.
 
coderus's Avatar
Posts: 6,431 | Thanked: 12,683 times | Joined on Nov 2011 @ Open Mobile Platform, Innopolis, Russia
#14
i just edited language.sh:
Code:
LC_ALL=$langind
LANG=$langid
LANGUAGE=$langid
__________________
Twitter | Openrepos | GitHub | PayPal.Me
 
Posts: 1,797 | Thanked: 4,223 times | Joined on Feb 2011 @ Germany
#15
Originally Posted by coderus View Post
i just edited language.sh:
Code:
LC_ALL=$langind
LANG=$langid
LANGUAGE=$langid
But who put that (broken) script in there?
There's no way to help (if other users have that problem) without knowing which program creates that script.
 
peterleinchen's Avatar
Posts: 4,086 | Thanked: 8,796 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#16
NOkia put it there.
duicontrolpanel-displaylanguageapplet: /etc/profile.d/language.sh
~ $ cat /etc/profile.d/language.sh
#!/bin/sh

langdata=$(gconftool -g /meegotouch/i18n/language)
# default
langid=en_US.UTF-8

if [ -n $langdata ]; then
# remove everything after a @ including the @ itself because
# the options after @ in libicu locale names like
# zh_CN@collation=stroke do not make sense for the POSIX locales:
langid=${langdata%%@*}
# some conversion needs from libicu ids to posix ids
if [ "$langid" == "en" ]; then
langid=en_GB
elif [ "$langid" == "zh" ]; then
langid=zh_CN
elif [ "$langid" == "es_419" ]; then
langid="es_MX"
fi
fi
unset LC_ALL
export LANG=$langid
~ $
And even my output of
echo $LC_ALL
is empty, I have no such problems.

~ $ echo $langdata
en_US
~ $ echo $langid
en_US
~ $ echo $LC_ALL

~ $ echo $LANG
en_US
~ $ echo $LANGUAGE

~ $
My language is set to english and region to Germany
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2013-10-30 at 23:12.
 
coderus's Avatar
Posts: 6,431 | Thanked: 12,683 times | Joined on Nov 2011 @ Open Mobile Platform, Innopolis, Russia
#17
you getting environment problems mostly when logging to ssh from linux host with diffferent locales set. whel you logging, your host shell trying to set locale settings on remote host same as in local host. thats it
__________________
Twitter | Openrepos | GitHub | PayPal.Me
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 1,797 | Thanked: 4,223 times | Joined on Feb 2011 @ Germany
#18
In /etc/ssh/sshd_config you need to comment out the line saying:

Code:
AcceptEnv LANG LC_*
or similar.

I don't know under the influence of what substance the openssh developers were when they decided to implement passing of environment variables from the client to the server. Really. The over-hyped i18n has only brought hugely enlarged systems and unexpected bugs, only for what? to see the compiler warnings in Italian?
 

The Following 6 Users Say Thank You to reinob For This Useful Post:
jmo707's Avatar
Posts: 67 | Thanked: 64 times | Joined on Feb 2015 @ Argentina
#19
Sorry to revive this. I've found exactly the same problem, and I don't have that last variable mentioned by reinob in my ssh_config, but there is a SendEnv LANG LC_*. Commenting it out didn't work.

The messages just seem to warn about a problem setting up locale, but I haven't seen any trouble with it. Is this just annoying, as the thread title says? =P
 
coderus's Avatar
Posts: 6,431 | Thanked: 12,683 times | Joined on Nov 2011 @ Open Mobile Platform, Innopolis, Russia
#20
this problem because N9 have no same locales as your host pc using. Because when you logging your host locales are being loaded to ssh, not remote one.
__________________
Twitter | Openrepos | GitHub | PayPal.Me
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:21.