summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-09-04 13:40:28 +0100
committerPeter Stephenson <pws@zsh.org>2015-09-04 13:40:28 +0100
commit938c4c1e4a3c3e6b5a43baf1147892e6580b0114 (patch)
treef23dfbc7d719368460b368c94bde31f6103600c2
parent3a676eab44a69447c36ec75dd54320459d4eaf6c (diff)
downloadzsh-938c4c1e4a3c3e6b5a43baf1147892e6580b0114.tar.gz
zsh-938c4c1e4a3c3e6b5a43baf1147892e6580b0114.tar.xz
zsh-938c4c1e4a3c3e6b5a43baf1147892e6580b0114.zip
36421: fix breakage in pattern change in 36415
-rw-r--r--ChangeLog5
-rw-r--r--Src/pattern.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fdd7d1179..1c19f1704 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-04  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 36421: Src/pattern.c: can't-get-the-staff fix for idiocy in
+	36415.
+
 2015-09-04  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
 
 	* 36417: Doc/Zsh/manual.yo: fix/update top level texinfo menu
diff --git a/Src/pattern.c b/Src/pattern.c
index 7457cbd23..b4ba33e49 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -1929,7 +1929,7 @@ charrefinc(char **x, char *y, int *z)
     size_t ret;
 
     if (!(patglobflags & GF_MULTIBYTE) || !(STOUC(**x) & 0x80))
-	return WCHAR_INVALID(*(*x)++);
+	return (wchar_t) STOUC(*(*x)++);
 
     ret = mbrtowc(&wc, *x, y-*x, &shiftstate);