From 91381824ba32306f383fc17b9f96af20487e11f3 Mon Sep 17 00:00:00 2001 From: amtrs _ Date: Sat, 5 Apr 2014 13:07:37 +0900 Subject: [PATCH] hotfix for multibyte languages --- src/shunit2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shunit2 b/src/shunit2 index 7077149..796fa18 100755 --- a/src/shunit2 +++ b/src/shunit2 @@ -51,7 +51,7 @@ __SHUNIT_MODE_STANDALONE='standalone' __SHUNIT_PARENT=${SHUNIT_PARENT:-$0} # set the constants readonly -shunit_constants_=`set |grep '^__SHUNIT_' |cut -d= -f1` +shunit_constants_=`set |grep --text --binary-files=text '^__SHUNIT_' |cut -d= -f1` echo "${shunit_constants_}" |grep '^Binary file' >/dev/null && \ shunit_constants_=`set |grep -a '^__SHUNIT_' |cut -d= -f1` for shunit_constant_ in ${shunit_constants_}; do