unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: dsmich@roadrunner.com
To: "'Marius Bakke'" <marius@gnu.org>
Cc: "'48480@debbugs.gnu.org'" <48480@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	[thread overview]
Message-ID: <9481a87ea3af60a8f4ffa3897b1398ec7681605b@webmail> (raw)
In-Reply-To: <87zgwtgzwm.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 651 bytes --]

      parent reply	other threads:[~2021-05-17 15:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17 15:09 bug#48480: [a-Z] is not a valid regex range in 3.0.7 Marius Bakke
2021-05-17 15:33 ` Taylan Kammer
2021-05-17 15:57   ` Marius Bakke
2021-05-17 15:39 ` dsmich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9481a87ea3af60a8f4ffa3897b1398ec7681605b@webmail \
    --to=dsmich@roadrunner.com \
    --cc=48480@debbugs.gnu.org \
    --cc=marius@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).