If I load unicode from a file and display it with yaf-splash, I see garbage.
My workaround in Muppy008.1 is a replacement for yaf-splash.
It seems to cover all calls I could find in /usr/sbin/
Code: Select all
#!/bin/bash
XMESSAGE="gxmessage -encoding UTF-8"
text=`echo $@ | sed -e "s/.*-text \(.*\)/\1/"`
#echo "$text"
a=`echo $@ | sed -e "s/-bg pale /-bg /" -e "s/-placement [^ ]* //" -e "s/-outline [^ ]* //" -e "s/-margin [^ ]* //" -e "s/-text .*//"`
#echo $a
exec $XMESSAGE -center -buttons "" -borderless $a "$text"
It also does not know "pale green", so such "pale " is removed.
It also cannot position the window at bottom, so it is always centered.
I think we should no longer use apps that cannot deal with unicode, though yaf-splash is quite nifty.
Could we rewrite it with freebasic?
That creates so small executables!
Mark