#!/bin/sh
#
# Hotfix for Google Earth german numeric locale bug

PATCH='--- /usr/bin/googleearth 2010-08-10 08:16:20.000000000 +0200
+++ /usr/bin/googleearth    2010-08-10 09:16:06.000000000 +0200
@@ -11,4 +11,5 @@
   LD_LIBRARY_PATH=${GOOGLE_EARTH_LD_LIBRARY_PATH}
 fi
 export LD_LIBRARY_PATH
+export LC_NUMERIC=us_US.UTF-8
 /usr/lib/googleearth/googleearth-bin "$@"';

USER=`/usr/bin/id -nu`;
if test "$USER" != "root"; then
   echo "\nDen Patcher bitte mit vorangestelltem sudo starten !";.
   exit 1;
fi

cd /

echo "$PATCH" | patch -p0 --ignore-whitespace;
#

