Subject: Corona fails compile when main.lua saved as UTF-8 with BOM
Corona Version: 2009.10.01
System Version: Mac Mini OS 10.6.1
iPhone/iPod generation: 3G iPhone
iPhone/iPod firmware version: 3.1
Severity - 3 Important(doesn’t function as planned)
Reproducibility: Every time
Description:
When main.lua is saved as UTF-8 with Byte Order Mark, Corona fails to
compile. This happens for both Simulator and Build-for-device.
Steps to reproduce:
- Open Hello World project in Bare Bone’s Text Wrangler
- Replace “Hello World” string with “???”
- Save (It’ll ask to save as UTF-8 since the Chinese string can’t be
encoded with Mac Roman) - Open in Corona command line app, and the console will complain of a
syntax error - Same results using GUI version of Corona Simulator
- In Text Wranger, choose Save-As and choose encoding as Unicode, UTF-8 no BOM
- Corona now compiles successfully for both simulator and on phone. [import]uid: 238 topic_id: 172 reply_id: 300172[/import]