Locale LTIB iMX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Locale LTIB iMX

1,905 Views
antoninobattagl
Contributor I

Hi all,

    i need to configure LTIB in order to be able to use locale linux command on my iMX51 target

and change the output of date according the desired language

What I want to achieve is the following that I can do on my linux ubuntu by command line:

ninochip@ubuntu:~$ date

Fri Jun  7 16:45:23 CEST 2013

ninochip@ubuntu:~$ export LANG=it_IT.UTF-8

ninochip@ubuntu:~$ date

ven  7 giu 2013, 16.45.36, CEST

Do you have any clue how to do that???

BYE!!!!

Labels (3)
0 Kudos
Reply
4 Replies

1,447 Views
antoninobattagl
Contributor I

Hi, thanks for your reply. locale command and in general all related files and functionalities are not part of busybox but glibc. locale bin can be copy/past from the compiler but not locale-gen. So you cannot create locale-archives. A solution has been to copy locale-archives from my VM to the target rootfs. No so nice but it works.

Finally I have seen QLocale class in Qt which does exactly what I need without the effort to perform the steps described before.

0 Kudos
Reply

1,447 Views
blurencetin
Contributor II

Hi antoninobattaglia,

I copied following files/dirs from oneiric rootfs to my sabresd linux:

/usr/sbin/locale

/usr/sbin/localedef

/usr/sbin/locale-gen

/usr/lib/locale

/usr/share/i18n

then call locale-gen to update locale-archives, command success but not works.

You mentioned that you just copied locale-archives and works well, are there any other procedures that should notice?

0 Kudos
Reply

1,447 Views
LeonardoSandova
Specialist I

But all these files you need are binaries, right? how can a binary from you VM worked on your ARM boad?

Leo

0 Kudos
Reply

1,447 Views
LeonardoSandova
Specialist I

Check if latest busybox version supports that command. In yes, download the tarball into /opt/freescale/pkgs and change the version on the .spec file. Then Build (./ltib -m prep-scbuild-scdeploy) again.

Leo