Opened 6 years ago
Closed 5 years ago
#5469 closed defect (fixed)
OMC cannot read UTF-8 CombiTimeTable data files with BOM
Reported by: | Francesco Casella | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | blocker | Milestone: | 1.14.0 |
Component: | *unknown* | Version: | |
Keywords: | Cc: | Adrian Pop |
Description
Please check ModelicaTest.Tables.CombiTable2Dv.Test31. The following error is reported:
assert | debug | Error reading format and version information in first line of file "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/Tables/test_utf8.txt": "#1" expected, but "�" found.
There is something wrong in the chain of functions called to read the UTF-8 2D table file with BOM.
Change History (10)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
I understand the conclusion of that discussion was that UTF-8 data files with BOM were allowed, that's why a test case was added (which we are currently failing).
Is the failing function part of the MSL, or is it in the tool-specific ModelicaServices?
comment:3 by , 6 years ago
We had a merge of the tables since then, but I don't know if we have that fix in there...
comment:6 by , 6 years ago
comment:7 by , 6 years ago
Thanks @sjoelund.se!
Please also make sure the fix is pushed to MSL 3.2.3 maintenance and to our distribution.
comment:9 by , 6 years ago
comment:10 by , 5 years ago
Milestone: | 2.0.0 → 1.14.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This is now fixed.
https://github.com/modelica/ModelicaStandardLibrary/issues/2404