On 24Apr2009 18:20, Toshio Kuratomi <a.badger at gmail.com> wrote: | Terry Reedy wrote: | > Is NUL \0 allowed in POSIX file names? If not, could that be used as an | > escape char. If it is not legal, then custom translated strings that | > escape in the wild would raise a red flag as soon as something else | > tried to use them. | > | AFAIK NUL should be okay but I haven't read a specification to reach | that conclusion. Is that a proposal? Should I go find someone who has | read the relevant standards to find out? NUL cannot occur in a POSIX file path, if for no other reason than that the API uses C strings, which are NUL terminated. So, yes, you could use NUL as an escape character if you're sure you're never dealing with _non_POSIX pathnames:-) Cheers, -- Cameron Simpson <cs at zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/ | I'm the female partner of a climber (I don't climb) and until now, I was | under the impression that climbers are cool people, but alas, you had to | ruin it for me. *REAL* climbers are crude, impolite, solitary, abrupt, arrogant. Sport climbers are cool. - Rene Tio <tor at bnr.ca> in rec.climbing
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4