A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1564 ====================================================================== Reported By: calestyo Assigned To: ====================================================================== Project: Issue 8 drafts Issue ID: 1564 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: New Name: Christoph Anton Mitterer Organization: User Reference: Section: 2.13 Pattern Matching Notation Page Number: 2351 Line Number: 76099 Final Accepted Text: ====================================================================== Date Submitted: 2022-02-23 01:54 UTC Last Modified: 2022-04-12 08:51 UTC ====================================================================== Summary: clariy on what (character/byte) strings pattern matching notation should work ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0001561 clarify what kind of data shell variabl... ======================================================================
---------------------------------------------------------------------- (0005798) geoffclare (manager) - 2022-04-12 08:51 https://austingroupbugs.net/view.php?id=1564#c5798 ---------------------------------------------------------------------- > How can a conforming application possibly (sanely) ensure the C locale is in use when performing pathname expansion using user input that has been presented in the user's locale 1. The vast majority of apps will never need to do that because they know (or can assume) that the pathnames they handle either always use the portable filename character set or use the user's locale. I.e. the pathnames are not <b>abitrary</b> (a word I was careful to include in the proposed changes). 2. In apps that truly do need to do matching or expansion on arbitrary pathnames, a C program can call uselocale() before and after calls to fnmatch(), glob(), and wordexp(). A shell script can set LC_ALL=C before handling pathnames (and unset it or restore it afterwards). Issue History Date Modified Username Field Change ====================================================================== 2022-02-23 01:54 calestyo New Issue 2022-02-23 01:54 calestyo Name => Christoph Anton Mitterer 2022-02-23 01:54 calestyo Section => 2.13 Pattern Matching Notation 2022-02-23 01:54 calestyo Page Number => 2351 2022-02-23 01:54 calestyo Line Number => 76099 2022-02-25 04:57 calestyo Note Added: 0005716 2022-02-25 20:54 mirabilos Note Added: 0005719 2022-03-03 03:37 calestyo Note Added: 0005729 2022-04-07 16:30 geoffclare Relationship added related to 0001561 2022-04-11 13:55 geoffclare Note Added: 0005796 2022-04-11 22:58 kre Note Added: 0005797 2022-04-12 08:51 geoffclare Note Added: 0005798 ======================================================================
