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!!!!
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.
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?
But all these files you need are binaries, right? how can a binary from you VM worked on your ARM boad?
Leo
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