zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <psprint@zdharma.org>
To: zsh-workers@zsh.org
Subject: Bug in regex library, FIY, and also where to report it?
Date: Sun, 4 Mar 2018 15:42:08 +0100	[thread overview]
Message-ID: <etPan.5a9c05c0.407a78ca.10b3f@zdharma.org> (raw)

Hello,
% REGEX='^[þ-ā]+$'; [[ ÿ =~ $REGEX ]] && echo yes
zsh: failed to compile regex: invalid character range

þ is decimal 254, ā is decimal 257. If one splits this range on 255/256 decimal:

% REGEX='^[þ-ÿĀ-ā]+$'; [[ ÿ =~ $REGEX ]] && echo yes
yes

Then it works. Bash 3.2 doesn't print error message, but first regex doesn't yield "yes" in output (in Bash 4.4 both work). Also, Mikachu checked that `setopt rematchpcre` makes first regex work. I checked that the range works if treated as Zsh pattern.

All in all, it seems to be located in the regex library, as Bash shares same issue, and pcre works fine. Has anyone a hint where to report this?

--  
Sebastian Gniazdowski
psprint /at/ zdharma.org


             reply	other threads:[~2018-03-04 23:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-04 14:42 Sebastian Gniazdowski [this message]
2018-03-06 16:40 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=etPan.5a9c05c0.407a78ca.10b3f@zdharma.org \
    --to=psprint@zdharma.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).