Saturday, September 25, 2010

Qt: Locale not supported on X server

After installed new Nokia Qt SDK 1.0.1/Qt 4.7.0 on Ubuntu 10.04, I tried to run my first application on emulator. The error message "Qt: Locale not supported on X server" was shown on Application Output.

As my understanding, it's because the X server cannot understand the language of the locale setting; depends on what the default LANG setting. It can be ignored, English will be used as locale language.

If you really want to remove the error message, you can change your locale setting:

edit file /etc/default/locale with root's right

$sudo gedit locale

replace the LANG setting with:

LANG="en_US.UTF8"

And re-start your system to make it take effect.