You are not logged in.
When running a xdialog script, I am getting this error.
Gdk-WARNING **: locale not supported by C library
Example:
#!/bin/sh
Xdialog --title "TEST BOX"
--msgbox "Hi, this is a simple message box. You can use this to
display any message you like. The box will remain until
you press the ENTER key." 10 41
case $? in
0)
echo "OK";;
255)
echo "Box closed.";;
esac
Markku
Offline
In /etc/locale.gen, uncomment the locales that you are using and run locale-gen as root.
Offline
I added "export LANG=C" in the script, works fine.
Markku
Offline
rasat! [solved]!
Offline
Markku
Offline
The "export LANG=C" part isn't a solution. It's a hack. The real fix is to do what Snowman said and actually generate your locales. The "locale not supported" message means you did not generate the locale info for the locale you're running under.
To generate these files, you need to uncomment any and all locales you use in /etc/locale.gen and then run "locale-gen" as root, as Snowman mentioned.
Offline
The "locale not supported" message means you did not generate the locale info for the locale you're running under.
For my information, where its said to do this? When installing a fresh install and all packages updated, the locale problem is there. Is this a bug or something what everyone supposed to know?
Why the default locale configure is not enough in /etc/rc.conf, why to bother about /etc/locale.gen?
LOCALE="en_US.utf8"
EDIT:
I took a look at /etc/locale.gen. I don't know what to uncomment, its like reading a foreign language.
Markku
Offline