Tiny Core Extensions > TCE Corepure64

[SOLVED] V 6.3 getlocale.tcz and locale error

(1/2) > >>

gordon64:
Hi

download and ran getlocale and got this error looking thing.



--- Code: ---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
--- End code ---



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


--- Code: ---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=

--- End code ---


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: ---echo -e '\xe2\x82\xac\'
--- End code ---

Its supposed to give me the Euro symbol for money

cheers and thanks for reading

curaga:
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.

gordon64:
curaga

thanks for the quick reply.

--- Quote ---No extension should cause /usr/lib/locale to be a symlink
--- End quote ---

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: ---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
--- End code ---

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: ---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
--- End code ---

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

curaga:
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.

gordon64:
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: ---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=

--- End code ---

thanks again for all your help

Navigation

[0] Message Index

[#] Next page

Go to full version