unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#57507: Regular expression matching depends on locale encoding
@ 2022-08-31 16:54 Jean Abou Samra
  2022-09-01 19:34 ` dsmich
  2022-09-05  7:48 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Jean Abou Samra @ 2022-08-31 16:54 UTC (permalink / raw)
  To: 57507

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)>






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-17 20:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31 16:54 bug#57507: Regular expression matching depends on locale encoding Jean Abou Samra
2022-09-01 19:34 ` dsmich
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

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).