diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-09-15 18:56:20 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-09-15 18:56:20 +0900 |
commit | 4fc5dc0292acd77f17281f451774ba2ca4203026 (patch) | |
tree | 25f6306c5a417ae135102ec02a3d725e9c14a10f /Test/V07pcre.ztst | |
parent | eb738c793a6f9f293fc655c6aa87effc3dd9e44f (diff) | |
download | zsh-4fc5dc0292acd77f17281f451774ba2ca4203026.tar.gz zsh-4fc5dc0292acd77f17281f451774ba2ca4203026.zip |
50629: do not use egrep in tests
Diffstat (limited to 'Test/V07pcre.ztst')
-rw-r--r-- | Test/V07pcre.ztst | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst index c9c844d2a..ca13419e5 100644 --- a/Test/V07pcre.ztst +++ b/Test/V07pcre.ztst @@ -6,20 +6,8 @@ return 0 fi setopt rematch_pcre -# Find a UTF-8 locale. - setopt multibyte -# Don't let LC_* override our choice of locale. - unset -m LC_\* - mb_ok= - langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8 - $(locale -a 2>/dev/null | egrep 'utf8|UTF-8')) - for LANG in $langs; do - if [[ é = ? ]]; then - mb_ok=1 - break; - fi - done - if [[ -z $mb_ok ]]; then + LANG=$(ZTST_find_UTF8) + if [[ -z $LANG ]]; then ZTST_unimplemented="no UTF-8 locale or multibyte mode is not implemented" else print -u $ZTST_fd Testing PCRE multibyte with locale $LANG |