Here's a diff against (I guess) an older version of petget:
Code: Select all
--- ./petget.00 2007-09-14 11:55:56.000000000 +0200
+++ ./petget 2010-02-23 22:07:31.000000000 +0100
@@ -16,8 +16,8 @@
#13Sept2007 BK: v2.21 handle true flushing to flash drive.
#v2.17.1 trying to fix a bug...
-LANG=C
-export LANG
+# LANG=C
+# export LANG
PUPPYVERSION="`cat /etc/puppyversion`"
#v2.17.1 variables created at bootup by /initrd/usr/sbin/init...
@@ -1166,7 +1166,7 @@
#fi
-sort -u $WKGDIR/livepackages.txt > /tmp/livepackages.txt
+LANG=C sort -u $WKGDIR/livepackages.txt > /tmp/livepackages.txt
sync
PACKAGESFND="`cat /tmp/livepackages.txt`"
@@ -1308,7 +1308,7 @@
if [ ! "$PKGS2REM" = "" ];then
#v1.0.3 hiccup, see patch above, it is possible we can get duplicate entries here, if a pkg
#is listed in both alienpackages.txt and livepackages.txt. use sort...
- PKGREMNAMES="`echo "$PKGS2REM" | cut -f 1 -d " " | sort -u | tr "\n" " "`"
+ PKGREMNAMES="`echo "$PKGS2REM" | cut -f 1 -d " " | LANG=C sort -u | tr "\n" " "`"
if [ ! "$DISABLEDX" = "yes" ];then
# gxmessage -center -name "pet" -bg "orange" -buttons "REMOVE:10,ABORT:11" "You have chosen to remove these packages from Puppy:
#$PKGREMNAMES
@@ -1774,7 +1774,7 @@
cat $WKGDIR/livepackages.txt | grep -v "$MPATTERN" > /tmp/tempvvvv
sync
cat /tmp/tempnewon >> /tmp/tempvvvv
- sort /tmp/tempvvvv > $WKGDIR/livepackages.txt
+ LANG=C sort /tmp/tempvvvv > $WKGDIR/livepackages.txt
rm -f /tmp/tempvvvv
fi
rm -f /tmp/tempnewon
As you can see, petget exports LANG right at the top, which the patch comments out. The other hunks of the patch add LANG=C only where needed -at least that should be the main spots where the speedup is needed.
As for your package, as suggested, a wrapper which sets the LANG an executes your program should work, or include a setup tool for it which sets up the system LANG and copies the menu items before running the program the first time.