From fa1639c581be6a27f090adf217f82a3e86ba3446 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 24 Jun 2010 08:21:27 -0600 Subject: \400 -\777 now means the same thing in all d-quote Prior to this patch, \400 - \777 meant something different in some circumstances in regexes outside bracketed character classes. A deprecated warning message has been in place since 5.10.1 when this happens. Remove the warning, and bring the behavior into line with the other double-quotish contexts. \400 - \777 now always means the same thing as \x{100} - \x{1FF} (except when the octal forms are taken as backreferences.) Signed-off-by: David Golden --- regcomp.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'regcomp.c') diff --git a/regcomp.c b/regcomp.c index 49651b27b7..72af569aae 100644 --- a/regcomp.c +++ b/regcomp.c @@ -7500,17 +7500,8 @@ tryagain: I32 flags = 0; STRLEN numlen = 3; ender = grok_oct(p, &numlen, &flags, NULL); - - /* An octal above 0xff is interpreted differently - * depending on if the re is in utf8 or not. If it - * is in utf8, the value will be itself, otherwise - * it is interpreted as modulo 0x100. It has been - * decided to discourage the use of octal above the - * single-byte range. For now, warn only when - * it ends up modulo */ - if (SIZE_ONLY && ender >= 0x100 - && ! UTF && ! PL_encoding) { - ckWARNregdep(p, "Use of octal value above 377 is deprecated"); + if (ender > 0xff) { + RExC_utf8 = 1; } p += numlen; } -- cgit v1.2.1