JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
282 stars 64 forks source link

command-line MiniScript fails on script files containing non-ASCII characters #24

Closed JoeStrout closed 5 years ago

JoeStrout commented 5 years ago

To reproduce:

  1. Create a text file called test.ms, containing:

    print name
  2. Feed this to command-line MiniScript: miniscript test.ms

  3. Observe inappropriate error:

    Lexer Error: missing closing quote (") [line 1]

Note that this affects the Try-It! page (which is based on mostly the same code as the command-line version) too.

JoeStrout commented 5 years ago

(Thanks to forum user WorldLover for bringing this to my attention.)