GNU bug report logs - #48480
[a-Z] is not a valid regex range in 3.0.7

Previous Next

Package: guile;

Reported by: Marius Bakke <marius <at> gnu.org>

Date: Mon, 17 May 2021 15:10:01 UTC

Severity: normal

Done: Marius Bakke <marius <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: dsmich <at> roadrunner.com
To: "'Marius Bakke'" <marius <at> gnu.org>
Cc: "'48480 <at> debbugs.gnu.org'" <48480 <at> debbugs.gnu.org>
Subject: bug#48480: [a-Z] is not a valid regex range in 3.0.7
Date: Mon, 17 May 2021 15:39:38 +0000
[Message part 1 (text/plain, inline)]
This *is* the error returned by the underlying C library. For example:

#include 
#include 
#include 

int main() {
 char buf[128] = {0};
 regex_t rx = {0};
 int status = regcomp(&rx, "[a-Z]", REG_EXTENDED);
 size_t ret = regerror(status, &rx, buf, sizeof buf);
 printf("status: %d, ret: %d, buf: [%s]n", status, ret, buf);
 return 0;
}

gcc -o rx rx.c && ./rx
status: 11, ret: 18, buf: [Invalid range end]

--Dale


[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 89 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.