changeset 3614:17a5bdd80fb9

6518626 create_ramdisk fails to create new boot archives in "de" locale Contributed by Juergen Keil <jk@tools.de>.
author setje
date Wed, 07 Feb 2007 16:20:38 -0800
parents d3ad3e7455e2
children 4f8fbf7c51ae
files usr/src/cmd/boot/scripts/create_ramdisk.ksh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/boot/scripts/create_ramdisk.ksh	Wed Feb 07 15:25:04 2007 -0800
+++ b/usr/src/cmd/boot/scripts/create_ramdisk.ksh	Wed Feb 07 16:20:38 2007 -0800
@@ -156,7 +156,7 @@
 				print "$path"
 			fi
 		else
-			filetype=`file $path 2>/dev/null |\
+			filetype=`LC_MESSAGES=C file $path 2>/dev/null |\
 			    awk '/ELF/ { print \$3 }'`
 			if [ -z "$filetype" ] || [ "$filetype" = "$which" ]
 			then
@@ -320,7 +320,7 @@
 		# the file type check also establishes that the
 		# file exists at all
 		#
-		file "${archive}-new" | grep gzip > /dev/null
+		LC_MESSAGES=C file "${archive}-new" | grep gzip > /dev/null
 	fi
 
 	if [ $? = 1 ] && [ -x /usr/bin/gzip ] || [ $ARCHIVE_SIZE -lt 5000 ]