yet another UTF-8 problem

this may be related to https://forums.opensuse.org/english/get-technical-help-here/install-boot-login/481392-opensuse-12-2-utf-8-issue.html

after an update (i don’t remember which one it was), i constantly get the following messages:-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)

and on the console during boot:/etc/profile.d/lang.sh: line 30: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
/etc/profile.d/lang.sh: line 30: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
/etc/profile.d/lang.sh: line 30: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
/etc/profile.d/lang.sh: line 30: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory
/etc/profile.d/lang.sh: line 30: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory

and errors in line 53 or 61 in /etc/profile.d/lang.sh

my investigations so far led to nowhere and i am lost here…

anybody any ideas?

I do not think that there is a relation wiith the other problem. That is a special case with remote consoles, etc.

But what would be interesting is to know some basic things you forgot to tell and which most of us can not know without mind reading. What is the openSUSE version you use. And there is a mention of bash in the messages you show, but you do not tell where you get them. A terminal emulation? When yes, which one and why don’t you then copy/paste between CODE tags from that terminal window? When no, from the console? Didyou type a command there, or is this imeddialtly after login/starting the terminal?

In short, you should envisage that we are not in your home behind your chair to see what you are doing. Thus you have top explain everything.

On 2012-12-16 12:56, hemathor wrote:
>
> this may be related to http://tinyurl.com/c89z7dw
>
> after an update (i don’t remember which one it was), i constantly get
> the following messages:
> -bash: warning: setlocale: LC_MESSAGES:
> cannot change locale (en_US.UTF-8): No such file or directory

glibc update?


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

hey, :slight_smile:

first of all: thanks for the reply! it’s much appreciated!

now that is really unfortunate! :smiley:

i am sorry, that i forgot to tell you: i am using opensuse 12.2 with all the latest updates from the respective repositories.

and the messages occur always when starting a new shell (here: bash, thus the error in /etc/profile.d/lang.sh), no matter how it is started.

now that you mention it: i think it’s very much possible! there was a patch of glibc that i installed…

what does that tell you? or me? do you have any idea what causes these messages and how to get rid of them?

thx for helping! :slight_smile:

I am looking through /etc/profile.d/lang.sh. I am not down to understanding it completely now, but one thing i find strange. There is a loop:

for lc in LANG LC_CTYPE LC_NUMERIC LC_TIME      \
          LC_COLLATE LC_MONETARY LC_MESSAGES    \
          LC_PAPER LC_NAME LC_ADDRESS           \
          LC_TELEPHONE LC_MEASUREMENT           \
          LC_IDENTIFICATION LC_ALL
do

and if I am not to stupid it happens somewhere in that loop (lines 53 and 61 are inside the loop). Strange is that the sequence of values taken by variable lc in the loop is different from the sequence your error messages are.

thx for the answer and for looking into this…

what i understand is, that /etc/profiles.d/lang.sh reads the values from /etc/sysconfig/language (and here you find the order of the variables):

# grep -vE "^#|^ *$" /etc/sysconfig/language
INPUT_METHOD=""
RC_LANG="en_US.UTF-8"
RC_LC_ALL=""
RC_LC_MESSAGES=""
RC_LC_CTYPE=""
RC_LC_COLLATE=""
RC_LC_TIME=""
RC_LC_NUMERIC=""
RC_LC_MONETARY=""
RC_LC_PAPER=""
ROOT_USES_LANG="ctype"
AUTO_DETECT_UTF8="no"
INSTALLED_LANGUAGES="en_US"

and sets the respective variables in the environment according to the settings in /etc/sysconfig/language (see line 30 of the script):

eval ${line#RC_}

and that is exactly what i don’t understand: since when does a simple variable assignment cause an error message? even if the value of that variable is “”? strange…

the for loop just unsets empty variables (for normal users, see line 53), or sets LC_CTYPE=$LANG for root (line 61).

so, what do i not understand here? why seem simple variable assignments cause error messages? there must be some other issue that i don’t get…

anyone any ideas? or even better, knowlegde?

On 2012-12-16 19:46, hemathor wrote:

> i am sorry, that i forgot to tell you: i am using opensuse 12.2 with
> all the latest updates from the respective repositories.

Do you have a factory repo enabled, per chance?


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 2012-12-16 19:46, hemathor wrote:
>
> robin_listas;2511185 Wrote:
>>
>> glibc update?
>>
> now that you mention it: i think it’s very much possible! there was a
> patch of glibc that i installed…

I thought so.

> what does that tell you? or me? do you have any idea what causes these
> messages and how to get rid of them?

That it is a known bug. Revert the update.
More info: read the factory mail list.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

nope, no factory. only oss and update repositories… currently installed version of glibc is 2.15-22.9.1 from update repo.

will do so…

so it’s not only a bug in factory, but also in the update repo?

On 2012-12-17 00:26, hemathor wrote:
>
> robin_listas;2511313 Wrote:
>>
>> That it is a known bug. Revert the update.
>> More info: read the factory mail list.
>
> will do so…
>
> so it’s not only a bug in factory, but also in the update repo?

That I do not know. But if reverting the update solves your problem,
then they “backported the bug”. You should then report the issue in
Bugzilla.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

Hi, I had the same problem.
Downgrading glibc to the version of the Main repository solved my problems.

Thank you.

Well, that proves it, doesn’t it? No need to search any further.

Thanks psaxioti

much ado about nothing…

but thanks for helping anyway! :slight_smile: