Host ARM system locale settings are not inherited in the guest x86 system. Here is the tutorial how to setup custom locate for x86 Linux and x86 Windows applications running with help of ExaGear Desktop on your ARM device.

Setup locale for Linux x86 applications

Enter the guest x86 system and check what locales you have installed there:

$ exagear
Starting /bin/bash  in the guest image /opt/exagear/images/debian-8

$ locale -a
C
C.UTF-8
POSIX

‘POSIX’ locale is selected by default in the guest x86 system:

$ locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

If your x86 application requires a locate that is not listed above you need to install 'locales' package in the guest x86 system:

$ sudo apt-get update && sudo apt-get install locales

Use the following command and the dialog menu to choose needed locale for installation. Suppose you need es_EC.UTF-8 locale.

$ sudo dpkg-reconfigure locales

After some time (depending on the target platform) system will generate chosen locale and will set it as default via the ‘/etc/default/locale’ settings file.

$ cat /etc/default/locale
#  File generated by update-locale
LANG=es_EC.UTF-8

This way you will have es_EC.UTF-8 locale available for Linux x86 applications.

Exit and start Exagear again so locale settings are updated:

$ exit
$ exagear
Starting /bin/bash  in the guest image /opt/exagear/images/debian-8


You might also need to configure console and keyboard. Then install the following packages:

sudo apt-get install console-setup keyboard-configuration

Setup locale for Windows x86 applications running with Wine

For Windows x86 apps running with Wine inside the guest x86 system you need to setup locale the following way:

$ exagear
Starting /bin/bash  in the guest image /opt/exagear/images/debian-8

$ sudo apt-get install locales

$ sudo localedef -c -i es_EC -f UTF-8 es_EC.UTF-8

This way you will have es_EC.UTF-8 locale available for Windows x86 applications.

Did this answer your question?