This a a very short script showing the problem.
I have replaced the english strings with variables, that are filled with text in an external .mo file.
This file is saved in leafpad as UTF-8.
The script uses Xdialog and xmessage to display information.
Xdialog displays äöü correct, xmessage does not.
If you save the .mo in Iso format, it is vice versa.
The solution is to install gxmessage, e.g. from
http://dotpups.de/dotpups/System_Utilit ... essage.pup
In Muppy008 it is already included, and "xmessage" was deleted and symlinked to gxmessage.
This is not sufficient though, because gxmessage runs in compatibility-mode with xmessage.
In cups_shell I now added this code in the beginning:
Code: Select all
#--patch for gxmessage with UTF-8 by Mark Ulrich
gx=`which gxmessage`
XMESSAGE="xmessage"
if [ "$gx" != "" ];then
XMESSAGE="gxmessage -encoding UTF-8"
fi
#-- // end of patch
Code: Select all
xmessage -bg "medium purple" -title
Code: Select all
$XMESSAGE -bg "medium purple" -title
On a system with gxmessage, now all text is shown correctly.
On a system without gxmessage, the text is shown with wrong UTF-characters in xmessage, but at least it is shown.
Mark