Verify a file's conformance with its modeline

Ryan Schmidt ryandesign at macports.org
Wed Jun 25 10:42:35 PDT 2008


On Jun 25, 2008, at 11:26 AM, Rainer Müller wrote:

> Ryan Schmidt wrote:
>> [...]
>> Not sure what else in the modeline needs verification. The modeline
>> can/should specify the file's character encoding, but port lint
>> always checks to make sure the file is UTF-8; it does not use the
>> encoding listed in the modeline. Then again, neither does MacPorts
>> itself; it also assumes/requires that the file is UTF-8.
>
> Hmm, the modeline contains the fileencoding as a hint for your editor
> only, it should not be changed. All files should be UTF-8.

So then lint could warn if the modeline specifies a character  
encoding other than UTF-8. In fact it could warn if the modeline  
differs at all from the one shown in the Guide.




More information about the macports-dev mailing list