Opened 15 years ago

Closed 15 years ago

#21570 closed defect (wontfix)

BOM in unicode Portfiles causes parsing error

Reported by: Veence (Vincent) 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 (1)

comment:1 Changed 15 years ago by tobypeterson

Resolution: wontfix
Status: newclosed

Tcl doesn't handle it, nothing we can do. As a simple test just create a file with a BOM:

puts "hello world"

tclsh will generate the following error:

invalid command name "puts"
    while executing
"puts "hello world""
    (file "hello.tcl" line 1)
Note: See TracTickets for help on using tickets.