Workaround around the Turkish language.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2658 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2007-01-12 23:48:36 +00:00
parent 3f02f45757
commit 13d361f218
2 changed files with 14 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.7:
- Unix build scripts now work under LC_CTYPE=tr_TR - SvdB
- Flush write buffer when doing a uio_fclose() after doing only
uio_fwrite() operations. - SvdB
- Major rewrite of the SwapBuffers commands -- screen compositing logic
+13 -4
View File
@@ -636,7 +636,10 @@ EOF
# Arguments: $1 - the name of the symbol
define_have_symbol() {
local NAME VALUE
NAME=`$TR "[:lower:]" "[:upper:]" << EOF
# Why not "tr [:lower:] [:upper:]"? Because the capital "i" is not
# "I" in Turkish... An alternative would be setting LC_CTYPE to POSIX.
NAME=`$TR "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" << EOF
$1
EOF
`
@@ -655,7 +658,10 @@ EOF
# Arguments: $1 - the name of the symbol
define_have_type() {
local NAME VALUE
NAME=`$TR "[:lower:]" "[:upper:]" << EOF
# Why not "tr [:lower:] [:upper:]"? Because the capital "i" is not
# "I" in Turkish... An alternative would be setting LC_CTYPE to POSIX.
NAME=`$TR "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" << EOF
$1
EOF
`
@@ -698,7 +704,10 @@ EOF
# Arguments: $1 - the name of the header file
define_have_header() {
local NAME VALUE
NAME=`$TR /.[:lower:] __[:upper:] << EOF
# Why not "tr [:lower:] [:upper:]"? Because the capital "i" is not
# "I" in Turkish... An alternative would be setting LC_CTYPE to POSIX.
NAME=`$TR "/.abcdefghijklmnopqrstuvwxyz" "__ABCDEFGHIJKLMNOPQRSTUVWXYZ" << EOF
$1
EOF
`
@@ -913,7 +922,7 @@ substitute_vars() {
for VAR in $VARS; do
# Escape all / in VAR so that we can use / as seperator char for sed
eval VALUE=\"\$$VAR\"
VALUE=$(echo "$VALUE" | $SED 's,\([\&/]\),\\\1,g')
VALUE=$(echo "$VALUE" | $SED -e 's,\([\&/]\),\\\1,g')
cat << EOF
s/@${VAR}@/${VALUE}/g
EOF