WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] V 6.3 getlocale.tcz and locale error  (Read 5928 times)

gordon64

  • Guest
[SOLVED] V 6.3 getlocale.tcz and locale error
« on: June 30, 2015, 11:34:18 PM »
Hi

download and ran getlocale and got this error looking thing.


Code: [Select]
Now processing... cannot open locale archive "/usr/lib/locale/locale-archive": Too many levels of symbolic links

Locales installed. Creating extension... /

Done. The extension is at /mnt/sda4/tce/optional/mylocale.tcz and in onboot.lst
Reboot with lang=xyz (for example lang=en_AU.UTF-8) to start using this.


Press enter to quit



2)  For me, I continued and with that lang bootcode  I reboot to this

Code: [Select]
locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_AU.UTF-8
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=


I am concerned with the top error looking messages.


#################

Also I ran a google supplied utf8 command to test with my current locale
in gnome-terminal and in a "building" lxterminal

both terms fail for this command.....xorg is running as far as I can tell on FLWM

Code: [Select]
echo -e '\xe2\x82\xac\'
Its supposed to give me the Euro symbol for money

cheers and thanks for reading

« Last Edit: July 01, 2015, 08:31:12 PM by Rich »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: V 6.3 getlocale.tcz and locale error
« Reply #1 on: July 01, 2015, 04:07:18 AM »
I couldn't reproduce your error. getlocale ran fine on a new 6.3 install.

tce-load -wi getlocale
# /usr/lib/locale does not exist
sudo getlocale.sh # all good

No extension should cause /usr/lib/locale to be a symlink. Please see if you can find what caused it.
The only barriers that can stop you are the ones you create yourself.

gordon64

  • Guest
Re: V 6.3 getlocale.tcz and locale error
« Reply #2 on: July 01, 2015, 05:28:10 AM »
curaga

thanks for the quick reply.
Quote
No extension should cause /usr/lib/locale to be a symlink

unfortunately its mylocale that appears to be the culprit.

2) Now I hope you have a sense of humour? I ran tce-load -i getlocale  (as a local user) and it did not bork and popped up a terminal to give me locale entries.

3) I deleted all mylocale TCZ stuff full reboot and loaded getlocale and run it as root

result was same image as above but here is alleged proof of sym link culprit

Code: [Select]
tc@box:~$ ls -al /usr/lib/locale
total 0
drwxr-xr-x    2 root     root             0 Jul  1 03:38 ./
drwxr-xr-x    6 root     root             0 Sep 21  2014 ../
lrwxrwxrwx    1 root     root            50 Jul  1 08:45 locale-archive -> /tmp/tcloop/mylocale/usr/lib/locale/locale-archive

In mc terminal file manager when I go into that tcloop dir it shows as red with an exclamation mark, normally a sign of a broken sym link.
I tried to get into it thru mc and it borks.

but I am still none the wiser.

Code: [Select]
ls -al /usr/lib/locale/locale-archive
lrwxrwxrwx    1 root     root            50 Jul  1 08:45 /usr/lib/locale/locale-archive -> /tmp/tcloop/mylocale/usr/lib/locale/locale-archive
tc@box:~$ ls -al /usr/lib/locale/locale-archive/*
ls: /usr/lib/locale/locale-archive/*: Too many levels of symbolic links

4) I might add as a distraction, the info file makes no mention of root (sudo) but that is the least of my concerns.

5) If we can't solve it, maybe I should just make a private extension?

any clues?

thanks for reading

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: V 6.3 getlocale.tcz and locale error
« Reply #3 on: July 01, 2015, 05:40:48 AM »
Oh, did you have an existing mylocale loaded? You should only run getlocale when there is no existing locale setup. Should add some code to handle that case.
The only barriers that can stop you are the ones you create yourself.

gordon64

  • Guest
Re: V 6.3 getlocale.tcz and locale error
« Reply #4 on: July 01, 2015, 07:50:01 PM »
Please mark as solved.

I was and remain the local village idiot. That does give me thoughts that maybe I over estimated my skills
yet again!

anyhow here is proof locale is all good....and that test needed double quotes not single

Code: [Select]
echo -e "\xe2\x82\xac"

tc@box:~$ locale
LANG=en_AU.UTF-8
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=

thanks again for all your help

gordon64

  • Guest
Re: [SOLVED] V 6.3 getlocale.tcz and locale error
« Reply #5 on: July 02, 2015, 05:24:44 AM »
wrong again

single quote works fine....my first mention of the utf8 command has ended in a \
that was wrong.