mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-11 13:51:16 -03:00
make fish compatible with pcre2 10.21
pcre2_substitute() now sets the output buffer length to PCRE2_UNSET (~0) if the output buffer is determined to be too small. This change keeps track of the buffer size separately where pcre2 can't touch it. A better fix would be to let pcre2 tell fish what size buffer it needs. This can be done with PCRE2_SUBSTITUTE_OVERFLOW_LENGTH, but this requires pcre2 10.21 or later (released January 12), which may be too new to introduce as a dependency at this point. Fixes #2743
This commit is contained in:
committed by
Kurtis Rader
parent
585c03db72
commit
5b0996fd80
@@ -41,6 +41,7 @@ spaces_to_underscores
|
||||
right left $
|
||||
put a
|
||||
here
|
||||
aabb
|
||||
invalid expression error
|
||||
invalid argument error
|
||||
missing argument returns 0
|
||||
|
||||
Reference in New Issue
Block a user