From d96c8981011294cfef62cd1f8d76b2a982957ca4 Mon Sep 17 00:00:00 2001 From: Stephane Chazelas Date: Thu, 17 Dec 2020 14:49:50 +0000 Subject: 47745: Fix [:IDENT:] vs posixidentifiers wcsitype(c, IIDENT) should return false for non-ASCII characters when the POSIX_IDENTIFIERS option is on, not the other way round. --- ChangeLog | 5 +++++ Src/utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b50d6b2b7..8cef6370b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-03-23 dana + + * 47745: Stephane Chazelas: Src/utils.c: Fix [:IDENT:] vs + posixidentifiers + 2021-03-17 dana * 48180: Marlon Richert: Completion/Base/Core/_main_complete, diff --git a/Src/utils.c b/Src/utils.c index 5151b89a8..2a8d677a7 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -4327,7 +4327,7 @@ wcsitype(wchar_t c, int itype) } else { switch (itype) { case IIDENT: - if (!isset(POSIXIDENTIFIERS)) + if (isset(POSIXIDENTIFIERS)) return 0; return iswalnum(c); -- cgit 1.4.1