LS-Lab / KeYmaeraX-release

KeYmaera X: An aXiomatic Tactical Theorem Prover for Hybrid Systems (release)
http://keymaeraX.org/
GNU General Public License v2.0
75 stars 37 forks source link

[parser/printer?] KeYmaera X allows uploading models with Unicode characters, then errs #104

Closed rbohrer closed 2 years ago

rbohrer commented 2 years ago

Version: 4.9.8 OS: Windows 10

Reproduce:

Got:

Expected:

Priority: This is my first bug report that comes from one of my students. Although it's easy to teach around, I actually would expect both CMU and WPI students to run into this issue in future semesters. See also added commentary

Added commentary: In my own work, I usually don't run into this problem by uploading a whole new model (like the student did). Usually I run into a problem where I copy-paste Unicode from the UI and it looks like ASCII so I forget it's not. In particular, the Unicode minus symbol looks very similar to the standard ASCII hyphen-minus, but leads to similar errors. So it's quite easy to get confused upon copy-pasting a minus.

UnicodeSurprise.kyx.txt

smitsch commented 2 years ago

Fixed in f6ca63bf9a6804a3ed22ed776190880ecfb074f2