Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Fix [:IDENT:] vs posixidentifiers
- X-seq: zsh-workers 47935
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Fix [:IDENT:] vs posixidentifiers
- Date: Sun, 7 Feb 2021 15:50:13 +0000
- Archived-at: <https://zsh.org/workers/47935>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/20210207155013.ean4tgv57uhn22nu%40chazelas.org>
- In-reply-to: <20201217150844.zkjydkeutae7cdpq@chazelas.org>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- References: <20201217150844.zkjydkeutae7cdpq@chazelas.org>
Ping. Anybody objecting to this?
2020-12-17 15:08:44 +0000, Stephane Chazelas:
> $ zsh -c '[[ é = [[:IDENT:]] ]]' || echo no
> no
> $ zsh -o posixidentifiers -c '[[ é = [[:IDENT:]] ]]' && echo yes
> yes
>
> That should be the other way round.
>
>
> From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
> Date: Thu, 17 Dec 2020 14:49:50 +0000
> Subject: [PATCH] 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.
> ---
> Src/utils.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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);
>
> --
> 2.29.2
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author