WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: locale not supported by C library  (Read 7448 times)

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: locale not supported by C library
« Reply #15 on: March 24, 2021, 03:38:17 PM »
Hi,
i have made a big mistake, i have put norestore in the boot loader and I have loose the locale-archive, i made the extention and i named it it-locale but do not work, i have to name the extention mylocale? Or i do a mistake in made it.
Thank you.

PS fortunately i have a backup of the file locale-archive  :D

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: locale not supported by C library
« Reply #16 on: March 24, 2021, 10:55:35 PM »
The name doesn't matter.

Did you add the renamed tcz into your onboot.lst ?

They have to be consistent you know.

BTW, you'll need to regenerate it whenever TC move on to a new release.

Hi,
i have made a big mistake, i have put norestore in the boot loader and I have loose the locale-archive, i made the extention and i named it it-locale but do not work, i have to name the extention mylocale? Or i do a mistake in made it.
Thank you.

PS fortunately i have a backup of the file locale-archive  :D

What's the output if you type this ?
Code: [Select]
unsquashfs -l it-locale.tcz
« Last Edit: March 24, 2021, 10:58:19 PM by polikuo »

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: locale not supported by C library
« Reply #17 on: March 25, 2021, 01:23:40 PM »
Hi Polikuo,

yes, it-locale.tcz is on boot.

here the outupt of the command,

Code: [Select]
tc@box:/mnt/sda1/tce/optional$ unsquashfs -l it-locale.tcz
Parallel unsquashfs: Using 2 processors
1 inodes (743 blocks) to write

squashfs-root
squashfs-root/locale-archive

thank you

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: locale not supported by C library
« Reply #18 on: March 25, 2021, 02:05:05 PM »
http://forum.tinycorelinux.net/index.php/topic,24857.15.html
here the outupt of the command

OK, I see the problem here.

This is how it should look like.

Code: [Select]
$ unsquashfs -l mylocale.tcz
Parallel unsquashfs: Using 16 processors
1 inodes (974 blocks) to write

squashfs-root
squashfs-root/usr
squashfs-root/usr/lib
squashfs-root/usr/lib/locale
squashfs-root/usr/lib/locale/locale-archive

To make it right:
1. Unpack
2. Make directories
3. Repack

Simple enough.

Replace it-locale.tcz with the repacked one.
Don't forget to add a dep file:
Code: [Select]
echo glibc_gconv.tcz > it-locale.tcz.dep
P.S.
Sorry, I couldn't post the exact commands for the job
The server internal error is so wonderful :P

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: locale not supported by C library
« Reply #19 on: March 25, 2021, 05:45:22 PM »
Hi Polikuo,

Done, it works, now I have norestore and the localization.

Sometime it is bettere to have only the indication and learn ;)

if I have understand good, if I move from TC 12 to for expample 12.1, I have to do again the locale-archive it is correct?

I can share the it-locale.tcz for other italian users that have the getlocale problem as me? It would works?

thank you

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: locale not supported by C library
« Reply #20 on: March 25, 2021, 07:54:47 PM »
Hi rullolex
... if I have understand good, if I move from TC 12 to for expample 12.1, I have to do again the locale-archive it is correct? ...
No, you shouldn't need to do it again.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: locale not supported by C library
« Reply #21 on: March 25, 2021, 11:12:06 PM »
if I have understand good, if I move from TC 12 to for expample 12.1, I have to do again the locale-archive it is correct?

From my past experience, if the glibc version is different, some programs may not act correctly.

It may be locale specific, but they do cause some trouble.

That's why I always remake the extension when TC move on to a newer release.

In short:
For major release -> yes
For minor release -> no