GilesBathgate / RapCAD

Rapid prototyping CAD IDE for RepRap and RepStrap 3D printing machines.
https://rapcad.org
GNU General Public License v3.0
153 stars 25 forks source link

Unicode files not handled properly? #27

Closed WillAdams closed 4 years ago

WillAdams commented 4 years ago

If you export an OpenSCAD file from Blockscad, then change the file extension to .rcad and double-click on it (after associating .rcad files with RapCAD), when it opens the BOM is viewable as text so one gets:

//!OpenSCAD

rather than

//!OpenSCAD

GilesBathgate commented 4 years ago

The Unicode Standard permits the BOM in UTF-8, but does not require or recommend its use.

That said I can understand why it's convenient to have the parser detect and ignore it, so I will add something to the lexer/parser to handle this.

GilesBathgate commented 4 years ago

Fixed in 43b67ee7dd096f3a6d68a40318d8e65c602c0a4d