New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21570 (closed defect: wontfix)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by toby@…

  • Status changed from new to closed
  • Resolution set to wontfix

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.