Index: bin/patch-wrapper.in =================================================================== RCS file: /sources/quilt/quilt/bin/patch-wrapper.in,v retrieving revision 1.6 diff -u -r1.6 patch-wrapper.in --- bin/patch-wrapper.in 11 Feb 2006 14:37:16 -0000 1.6 +++ bin/patch-wrapper.in 14 Feb 2006 21:59:28 -0000 @@ -83,10 +83,15 @@ if [ $? -ne 0 ] then cannot_handle=1 -elif [[ ! ${LC_ALL:-${LC_MESSAGES:-${LANG}}} =~ "^$|^C$|^POSIX$|^en" ]] -then - cannot_handle=1 else + case "${LC_ALL:-${LC_MESSAGES:-${LANG}}}" in + ''|C|POSIX|en*) + ;; + *) cannot_handle=1 + ;; + esac +fi +if [ -z "$cannot_handle" ]; then eval set -- "$options" backup_mode=--backup-if-mismatch @@ -169,10 +174,11 @@ elif [ -e /proc/self/fd/0 ] then patch=$(readlink /proc/self/fd/0) - if [[ "$patch" =~ "^pipe:" ]] - then - patch=$(find_pipe_patch "$patch") - fi + case "$patch" in + pipe:*) + patch=$(find_pipe_patch "$patch") + ;; + esac fi patch=${patch#$PWD/}