NLua / NLuaBox

NLua iOS Application
MIT License
14 stars 3 forks source link

String literals start with wrong quotation marks #1

Closed bonkf closed 5 years ago

bonkf commented 5 years ago

Some string literals in the example scripts start with instead of ". This leads to parsing errors. My phone is set to English but I'm using a German keyboard in case that is relevant.

Example: image

viniciusjarina commented 5 years ago

There is a bug on UIKit, so even when the SmartQuotes are disabled UIKit still repleaces " by . I will test using German keyboard.

This is the hack I had to do. https://github.com/NLua/NLuaBox/blob/9ac6c5dada672ce7e2e4eaef59bf76bf87a4de96/NLuaBox/ViewControllers/CodeViewController.cs#L58

Is this 0x201E ?

Thank you for the report.

bonkf commented 5 years ago

It is 0x201E, yes.

viniciusjarina commented 5 years ago

Ok. I will fix this evening. Thank you @Reperator