Op 14/06/2012 23:50, Michael Hope schreef:
Hi Tom. To start, which build and version are you running? The best way to check is by running 'arm-linux-gnueabi-gcc --version'
The gettext() functions are provided by GLIBC and should work. I recommend using strace to check where your program is actually looking for the translations and going from there.
Hope that helps,
$ /opt/gcc-linaro-arm-linux-gnueabi-2012.03-20120326_linux/bin/arm-linux-gnueabi-gcc --version
arm-linux-gnueabi-gcc (crosstool-NG linaro-1.13.1-2012.03-20120326 - Linaro GCC 2012.03) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I found out now that I always get the "C" locale(which is normal at program startup), and setting it to anything else doesn't work: I get 0 from the setlocale() function. If I set "C" as the locale, then it doesn't return 0 so the function works. So maybe my buildroot is missing something. I will check with strace too. Thanks!
Best regards Tom,