From 064ae65dee0167b463c775ee82e02e602bd24e4e Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 8 Jul 2008 20:54:33 +0000 Subject: [PATCH] reverse the sense of check for en_US.UTF-8 vs en_US.utf8: the latter is required by HP-sUX, okay, and apparently the preferred one by glibc (GNU libdrepper?), but breaks on al- most all other systems I have access to (Slowlaris, Midnight DragonFly NetBSD, Darwin, at least) --- check.t | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/check.t b/check.t index 6b57204..fb8bb7b 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.203 2008/07/08 20:08:02 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.204 2008/07/08 20:54:33 tg Exp $ # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ @@ -4393,9 +4393,24 @@ expected-stdout: off on --- -name: utf8opt-1 +name: utf8opt-1a description: Check that the utf8-hack flag is not set at non-interactive startup +category: !os:gnu,!os:hpux,!os:linux +env-setup: !PS1=!PS2=!LC_CTYPE=en_US.UTF-8! +stdin: + if [[ $(set +o) = *@(-o utf8-hack)@(| *) ]]; then + print is set + else + print is not set + fi +expected-stdout: + is not set +--- +name: utf8opt-1b +description: + Check that the utf8-hack flag is not set at non-interactive startup +category: os:gnu,os:hpux,os:linux env-setup: !PS1=!PS2=!LC_CTYPE=en_US.utf8! stdin: if [[ $(set +o) = *@(-o utf8-hack)@(| *) ]]; then @@ -4409,7 +4424,7 @@ expected-stdout: name: utf8opt-2a description: Check that the utf8-hack flag is set at interactive startup -category: os:solaris,os:darwin,os:netbsd +category: !os:gnu,!os:hpux,!os:linux arguments: !-i! env-setup: !PS1=!PS2=!LC_CTYPE=en_US.UTF-8! stdin: @@ -4426,7 +4441,7 @@ expected-stderr-pattern: name: utf8opt-2b description: Check that the utf8-hack flag is set at interactive startup -category: !os:solaris,!os:darwin,!os:netbsd +category: os:gnu,os:hpux,os:linux arguments: !-i! env-setup: !PS1=!PS2=!LC_CTYPE=en_US.utf8! stdin: