[kune-commits] r1566 - trunk/script
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Sat Oct 22 21:08:03 CEST 2011
Author: vjrj_
Date: 2011-10-22 21:08:02 +0200 (Sat, 22 Oct 2011)
New Revision: 1566
Modified:
trunk/script/i18n-db2gwt.sh
Log:
minor utf8 issue
Modified: trunk/script/i18n-db2gwt.sh
===================================================================
--- trunk/script/i18n-db2gwt.sh 2011-10-22 17:20:18 UTC (rev 1565)
+++ trunk/script/i18n-db2gwt.sh 2011-10-22 19:08:02 UTC (rev 1566)
@@ -4,7 +4,7 @@
usage() {
echo "Use: $0 -l langcode"
- echo "$0 -l en"
+ echo "$0 -l en [-j]"
}
while getopts “hl:j” OPTION
@@ -68,7 +68,7 @@
print "}"
}'
else
-mysql -B --skip-column-names --password="db4kune" -u kune kune_dev -e "$SEL" \
+mysql -B --skip-column-names --default-character-set=utf8 --password="db4kune" -u kune kune_dev -e "$SEL" \
| sed 's/ /ł/g' \
| awk -F "ł" '
BEGIN {
@@ -90,7 +90,7 @@
#gsub(/\[/, "\\[", trkey)
#gsub(/\]/, "\\]", trkey)
#print trkey "--->" trad
- cmd="echo `bin/convertI18nMsgToMethods.sh \""trkey" "nt"\"` = \""trad"\""
+ cmd="LC_CTYPE=UTF-8 echo `bin/convertI18nMsgToMethods.sh \""trkey" "nt"\"` = \""trad"\""
#print cmd
#exit
result = system(cmd)
@@ -98,4 +98,4 @@
END {
}'
-fi
\ No newline at end of file
+fi
More information about the kune-commits
mailing list