zsh-workers
 help / color / mirror / code / Atom feed
* Bug in regex library, FIY, and also where to report it?
@ 2018-03-04 14:42 Sebastian Gniazdowski
  2018-03-06 16:40 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Gniazdowski @ 2018-03-04 14:42 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug in regex library, FIY, and also where to report it?
  2018-03-04 14:42 Bug in regex library, FIY, and also where to report it? Sebastian Gniazdowski
@ 2018-03-06 16:40 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2018-03-06 16:40 UTC (permalink / raw)
  To: Sebastian Gniazdowski, zsh-workers

On Mar 4,  3:42pm, Sebastian Gniazdowski wrote:
}
} 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?

Looks like regexp is part of glibc, so:

https://sourceware.org/glibc/wiki/FilingBugs


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-06 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-04 14:42 Bug in regex library, FIY, and also where to report it? Sebastian Gniazdowski
2018-03-06 16:40 ` Bart Schaefer

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).