public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug glob/30483] New: fnmatch() gives inconsistent results when using locale specific character classes
@ 2023-05-23  6:26 carenas at gmail dot com
  2023-05-25 16:08 ` [Bug glob/30483] fnmatch() gives inconsistent results when using locale specific or invalid " carenas at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: carenas at gmail dot com @ 2023-05-23  6:26 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30483

            Bug ID: 30483
           Summary: fnmatch() gives inconsistent results when using locale
                    specific character classes
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: glob
          Assignee: unassigned at sourceware dot org
          Reporter: carenas at gmail dot com
  Target Milestone: ---

Created attachment 14903
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14903&action=edit
a test case showing the inconsistency (compare ko_KR and any other locale)

the current implementation has slightly different logic for the first
expression that matches in a character class and the remainder, leading to
situations where a match result would be inconsistent (as shown in the attached
test code).

the problem is reproducible (as coded) with glibc versions as old as 2.19 and
in multiple architectures, and indeed the issue is also present even if locale
specific character classes are not available (ex: if an invalid class name is
used as part of the pattern).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug glob/30483] fnmatch() gives inconsistent results when using locale specific or invalid character classes
  2023-05-23  6:26 [Bug glob/30483] New: fnmatch() gives inconsistent results when using locale specific character classes carenas at gmail dot com
@ 2023-05-25 16:08 ` carenas at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: carenas at gmail dot com @ 2023-05-25 16:08 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30483

Carlo Marcelo Arenas Belón <carenas at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|fnmatch() gives             |fnmatch() gives
                   |inconsistent results when   |inconsistent results when
                   |using locale specific       |using locale specific or
                   |character classes           |invalid character classes

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2023-05-25 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23  6:26 [Bug glob/30483] New: fnmatch() gives inconsistent results when using locale specific character classes carenas at gmail dot com
2023-05-25 16:08 ` [Bug glob/30483] fnmatch() gives inconsistent results when using locale specific or invalid " carenas at gmail dot com

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