GrammaticalFramework / gf-core

Grammatical Framework core: compiler, shell & runtimes
https://www.grammaticalframework.org
Other
131 stars 35 forks source link

Some example files are still in ISO-8859-1 but GF expects UTF-8 input #159

Open MSoegtropIMC opened 1 year ago

MSoegtropIMC commented 1 year ago

Some example files, e.g.

https://github.com/GrammaticalFramework/gf-core/blob/master/gf-book/examples/chapter2/FoodIta.gf

still use ISO-8859-1 (and possibly other encodings). Loading such a file without extra options results in:

Food> import FoodIta.gf
- compiling FoodIta.gf... 

FoodIta.gf:5:49:
   lexical error

Converting the file to UTF-8 fixes this.

The corresponding file in gf-contrib appears to be UTF-8.