[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Skipping leading "shebangs" in a file
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 9 Aug 2016 18:51:32 -0300
> As such, since text files on disk in most current filesystems do not
> carry encoding metadata, it isn't a bug to put a BOM at the beginning
> of a UTF-8 text file.
It is a bug in the spec, in the sense that it breaks the main raison
d'être of utf-8 (being compatible with ascii).
> However, it IS a bug to put a BOM before a #! because the shebang
> protocol demands that the first two bytes of the file be 0x23 0x21.
This illustrates my point...