about summary refs log tree commit diff
path: root/Src/pattern.c
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2017-05-12 12:10:13 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2017-05-12 12:10:13 +0900
commit171e7fa4c1d9cbf0d8ff35ee795e1599913aa329 (patch)
treeded7e4f9df81e95c9d62ed93ef45cc6c9afcee76 /Src/pattern.c
parent4bb81eefbd2a0093d0d3c1b9f4aa1de027512834 (diff)
downloadzsh-171e7fa4c1d9cbf0d8ff35ee795e1599913aa329.tar.gz
zsh-171e7fa4c1d9cbf0d8ff35ee795e1599913aa329.tar.xz
zsh-171e7fa4c1d9cbf0d8ff35ee795e1599913aa329.zip
41090: Replace iswprint() if unicode9 is enabled.
If wcwidth() or iswprint() is broken, force enable unicode9.
Diffstat (limited to 'Src/pattern.c')
-rw-r--r--Src/pattern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index 75db01634..fc7c73739 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -3625,7 +3625,7 @@ mb_patmatchrange(char *range, wchar_t ch, int zmb_ind, wint_t *indptr, int *mtp)
 		    return 1;
 		break;
 	    case PP_PRINT:
-		if (iswprint(ch))
+		if (WC_ISPRINT(ch))
 		    return 1;
 		break;
 	    case PP_PUNCT: