Bug 43737 Unable to debug firefox with "./firefox -g -d dbx" in Chinese locale, r=cls, sr=roc
authorGinn Chen <ginn.chen@sun.com>
Wed, 11 Jun 2008 18:34:50 +0800
changeset 15315 1dbb84c9bf307ad0e84799667809c7e6221c36e9
parent 15314 694a9a4d6dcff1db0df2fd92386cd1bf7b7c73e9
child 15316 7c2306a92f89e06a16502f76ef57535bfed96f50
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerscls, roc
bugs43737
milestone1.9.1a1pre
Bug 43737 Unable to debug firefox with "./firefox -g -d dbx" in Chinese locale, r=cls, sr=roc
build/unix/run-mozilla.sh
--- a/build/unix/run-mozilla.sh
+++ b/build/unix/run-mozilla.sh
@@ -108,17 +108,17 @@ moz_get_debugger()
 	debuggers="ddd gdb dbx bdb"
 	debugger="notfound"
 	done="no"
 	for d in $debuggers
 	do
 		moz_test_binary /bin/type
 		if [ $? -eq 1 ]
 		then
-			dpath=`type ${d} | awk '{print $3;}' | sed -e 's/\.$//'`	
+			dpath=`LC_MESSAGES=C type ${d} | awk '{print $3;}' | sed -e 's/\.$//'`	
 		else 	
 			dpath=`which ${d}`	
 		fi
 		if [ -x "$dpath" ]
 		then
 			debugger=$dpath
 			break
 		fi
@@ -139,17 +139,17 @@ moz_run_program()
 	fi
 	##
 	## Use md5sum to crc a core file.  If md5sum is not found on the system,
 	## then don't debug core files.
 	##
 	moz_test_binary /bin/type
 	if [ $? -eq 1 ]
 	then
-		crc_prog=`type md5sum 2>/dev/null | awk '{print $3;}' 2>/dev/null | sed -e 's/\.$//'`
+		crc_prog=`LC_MESSAGES=C type md5sum 2>/dev/null | awk '{print $3;}' 2>/dev/null | sed -e 's/\.$//'`
 	else
 		crc_prog=`which md5sum 2>/dev/null`
 	fi
 	if [ -x "$crc_prog" ]
 	then
 		DEBUG_CORE_FILES=1
 	fi
 	if [ "$DEBUG_CORE_FILES" ]
@@ -207,17 +207,17 @@ moz_debug_program()
 	then
 		moz_bail "Cannot execute $prog."
 	fi
 	if [ -n "$moz_debugger" ]
 	then
 		moz_test_binary /bin/type
 		if [ $? -eq 1 ]
 		then	
-			debugger=`type $moz_debugger | awk '{print $3;}' | sed -e 's/\.$//'` 
+			debugger=`LC_MESSAGES=C type $moz_debugger | awk '{print $3;}' | sed -e 's/\.$//'` 
 		else
 			debugger=`which $moz_debugger` 
 		fi	
 	else
 		debugger=`moz_get_debugger`
 	fi
     if [ -x "$debugger" ] 
     then