Re: Windows absolute drive path detection incomplete
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Aug 9, 2019, 00:22 UTC
- Message-ID
- <20190809002246.GL118825@genre.crustytoothpaste.net>
- In-Reply-To
- <DB7PR83MB0268816EF2F435EF791272C197D70@DB7PR83MB0268.EURPRD83.prod.outlook.com>
On 2019-08-08 at 16:44:52, Christopher Ertl wrote:
> So I'm proposing to remove the check for the drive letter being alpha in `has_dos_drive_prefix` macro: > > #define has_dos_drive_prefix(path) \ > ( (path)[1] == ':' ? 2 : 0)
Is the drive character required to be ASCII? If it can be non-ASCII Unicode, then this doesn't work, because the drive character will be encoded in UTF-8 and will be longer than one character.
An ABNF grammar of valid Windows path names would be helpful here.
-- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204