Date:        Tue, 12 Apr 2022 08:51:51 +0000
    From:        "Austin Group Bug Tracker via austin-group-l at The Open 
Group" <[email protected]>
    Message-ID:  <[email protected]>

That is, Geoff Clare:

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

The latter, perhaps, the former, certainly not in an international context.
The point was that, at least as I read the proposed text, you're defining
things like '*' to only work (reliably as specified) when the locale is
POSIX (aka C).   In the user's locale, who knows what happens?

  | I.e. the pathnames are not <b>abitrary</b> (a word I was careful to
  | include in the proposed changes).

Sure, the problem is that when dealing with user input (as in, for example,
the command line args) the application cannot assume that the pathnames are
not aribtrary.   They're anything that's OK for the user.

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

But how does that help *.doc (in a defined way, as opposed to "of course
that works in all glob implementations") match a filename that isn't
entirely ascii (by which I mean, using characters only from the portable
character set)?    Even worse perhaps, ???.doc which should match 7 char
names that end in ".doc" (or is that 7 byte names?) (not counting the \0).

Anyone from outside the English speaking world is likely to encounter many
of those.

kre

  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
      • Re:... Robert Elz via austin-group-l at The Open Group
        • ... Geoff Clare via austin-group-l at The Open Group
        • ... Robert Elz via austin-group-l at The Open Group
          • ... Harald van Dijk via austin-group-l at The Open Group
            • ... Christoph Anton Mitterer via austin-group-l at The Open Group
              • ... Harald van Dijk via austin-group-l at The Open Group
                • ... Christoph Anton Mitterer via austin-group-l at The Open Group
                • ... Harald van Dijk via austin-group-l at The Open Group
                • ... Christoph Anton Mitterer via austin-group-l at The Open Group
                • ... Harald van Dijk via austin-group-l at The Open Group
                • ... Christoph Anton Mitterer via austin-group-l at The Open Group

Reply via email to