From 21efbbe53089e8c0d0f3d51a3960637f3d74f992 Mon Sep 17 00:00:00 2001
From: ivpusic <ivpusic@foi.hr>
Date: Mon, 26 Aug 2013 23:39:35 +0200
Subject: [PATCH] added fix for message -> sed: RE error: illegal byte sequence

---
 tools/create-xcode-project.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/create-xcode-project.sh b/tools/create-xcode-project.sh
index 3350e78..be21bfc 100755
--- a/tools/create-xcode-project.sh
+++ b/tools/create-xcode-project.sh
@@ -11,6 +11,10 @@ SRCDIR=$2
 APPID=$(echo $APPNAME | tr '[A-Z]' '[a-z]')
 TEMPLATESDIR=$(dirname $0)/templates/
 APPDIR=$KIVYIOSROOT/app-$APPID
+OLD_LC_CTYPE=$LC_CTYPE
+# fix for -> sed: RE error: illegal byte sequence
+LC_CTYPE=C 
+
 if [ "X$APPNAME" == "X" ]; then
 	echo $(basename $0) "<appname> <source directory>"
 	exit 1
@@ -37,6 +41,8 @@ try find $APPDIR -type f -exec sed -i '' "s/##APPNAME##/$APPNAME/g" {} \;
 try find $APPDIR -type f -exec sed -i '' "s/##SDKVER##/$SDKVER/g" {} \;
 try find $APPDIR -type f -exec sed -i '' "s^##SRCDIR##^$SRCDIR^g" {} \;
 
+LC_CTYPE=$OLD_LC_CTYPE
+
 echo "-> Done !"
 
 echo