Re: Windows absolute drive path detection incomplete

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux