fix RX_MATCH_UTF8_on() macro
authorDavid Mitchell <davem@iabyn.com>
Tue, 1 Aug 2017 09:18:47 +0000 (10:18 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 4 Aug 2017 08:12:10 +0000 (09:12 +0100)
v5.27.2-34-g196a02a reorganised the RX_FOO() macros, mostly redefining
them in terms of the RXp_FOO() macros. A cut-an-paste error screwed up
the definition of RX_MATCH_UTF8_on(), which is isn't used in core.

regexp.h

index 2b8ba89..b22ada5 100644 (file)
--- a/regexp.h
+++ b/regexp.h
@@ -567,7 +567,7 @@ and check for NULL.
 #define RXp_MATCH_UTF8(prog)            (RXp_EXTFLAGS(prog) & RXf_MATCH_UTF8)
 #define RX_MATCH_UTF8(rx_sv)            (RX_EXTFLAGS(rx_sv) & RXf_MATCH_UTF8)
 #define RXp_MATCH_UTF8_on(prog)         (RXp_EXTFLAGS(prog) |= RXf_MATCH_UTF8)
-#define RX_MATCH_UTF8_on(rx_sv)         (RXp_EXTFLAGS(ReANY(rx_sv)))
+#define RX_MATCH_UTF8_on(rx_sv)         (RXp_MATCH_UTF8_on(ReANY(rx_sv)))
 #define RXp_MATCH_UTF8_off(prog)        (RXp_EXTFLAGS(prog) &= ~RXf_MATCH_UTF8)
 #define RX_MATCH_UTF8_off(rx_sv)        (RXp_MATCH_UTF8_off(ReANY(rx_sv))
 #define RXp_MATCH_UTF8_set(prog, t)     ((t) \