From: dsmich@roadrunner.com
To: "'Jean Abou Samra'" <jean@abou-samra.fr>
Cc: "'57507@debbugs.gnu.org'" <57507@debbugs.gnu.org>
Subject: bug#57507: Regular expression matching depends on locale encoding
Date: Thu, 01 Sep 2022 19:34:17 +0000 [thread overview]
Message-ID: <58cf2a302a753608ba9b978ebace5f13ef0fae70@webmail> (raw)
In-Reply-To: <dba30c62-7ac8-21ea-0a79-6a22bb108284@abou-samra.fr>
[-- Attachment #1: Type: text/plain, Size: 1416 bytes --]
Also remember that Guile uses the system C library regex routines. And
is using C strings, not Guile strings.
(sorry for top post, too tired to fight with this web editor)
-Dale
-----------------------------------------From: "Jean Abou Samra"
To: 57507@debbugs.gnu.org
Cc:
Sent: Wednesday August 31 2022 12:55:13PM
Subject: bug#57507: Regular expression matching depends on locale
encoding
Regular expressions do funky things with Unicode if a
non-Unicode-aware
locale is set. Yet, they're purely string operations, so I don't
think
it's expected that they depend on the locale encoding.
$ LC_ALL=C guile3.0
GNU Guile 3.0.7
Copyright (C) 1995-2021 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (use-modules (ice-9 regex))
scheme@(guile-user)> (match:substring (string-match "u203f" "u3091"))
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure make-regexp: Invalid preceding regular expression
Entering a new prompt. Type `,bt' for a backtrace or `,q' to
continue.
scheme@(guile-user) [1]> ,q
scheme@(guile-user)> (match:substring (string-match "[u203f]"
"u3091"))
$1 = "u3091"
scheme@(guile-user)>
[-- Attachment #2: Type: text/html, Size: 1670 bytes --]
next prev parent reply other threads:[~2022-09-01 19:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-31 16:54 bug#57507: Regular expression matching depends on locale encoding Jean Abou Samra
2022-09-01 19:34 ` dsmich [this message]
2022-09-05 7:48 ` Ludovic Courtès
2022-09-05 18:39 ` Jean Abou Samra
2022-09-05 19:24 ` Ludovic Courtès
2022-11-17 20:33 ` Jean Abou Samra
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=58cf2a302a753608ba9b978ebace5f13ef0fae70@webmail \
--to=dsmich@roadrunner.com \
--cc=57507@debbugs.gnu.org \
--cc=jean@abou-samra.fr \
/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).