Module Name:    src
Committed By:   kre
Date:           Sat Sep  8 18:24:02 UTC 2018

Modified Files:
        src/tests/usr.bin/printf: t_builtin.sh

Log Message:
Make sure we're in the standard locale when testing for printf
being built in to the shell, so we don't receive an unrecognisable
(to the script) message from the shell when we ask it.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/printf/t_builtin.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.bin/printf/t_builtin.sh
diff -u src/tests/usr.bin/printf/t_builtin.sh:1.1 src/tests/usr.bin/printf/t_builtin.sh:1.2
--- src/tests/usr.bin/printf/t_builtin.sh:1.1	Wed Sep  5 21:05:40 2018
+++ src/tests/usr.bin/printf/t_builtin.sh	Sat Sep  8 18:24:01 2018
@@ -1,4 +1,4 @@
-# $NetBSD: t_builtin.sh,v 1.1 2018/09/05 21:05:40 kre Exp $
+# $NetBSD: t_builtin.sh,v 1.2 2018/09/08 18:24:01 kre Exp $
 #
 # Copyright (c) 2018 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -95,7 +95,8 @@ Not_builtin()
 
 setup()
 {
-	case "$( ${TEST_SH} -c 'type printf' 2>&1 )" in
+	case "$(unset LANG LC_ALL LC_NUMERIC LC_CTYPE LC_MESSAGES
+	    ${TEST_SH} -c 'type printf' 2>&1 )" in
 
 	( *[Bb]uiltin* | *[Bb]uilt[-\ ][Ii]n* )
 		# nothing here, it all happens below.

Reply via email to