Ticket #21570 (closed defect: wontfix)
BOM in unicode Portfiles causes parsing error
| Reported by: | vince@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | base | Version: | 1.8.0 |
| Keywords: | unicode BOM | Cc: | |
| Port: | macports |
Description
MacPorts (at least v. 1.8) incorrectly handles initial BOM in UTF-8/Unicode Portfiles, causing a parse error in portindex. Ideally, the BOM should be ignored or used to set the correct encoding.
Change History
Note: See
TracTickets for help on using
tickets.


Tcl doesn't handle it, nothing we can do. As a simple test just create a file with a BOM:
tclsh will generate the following error:
invalid command name "puts" while executing "puts "hello world"" (file "hello.tcl" line 1)