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:2 by Francesco Casella, 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 Martin Sjölund, 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:4 by Martin Sjölund, 6 years ago

I tried to merge the sources, but they are a bit broken :D

comment:5 by Francesco Casella, 6 years ago

Should we ask Thomas Beutlich?

comment:7 by Francesco Casella, 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:8 by Martin Sjölund, 6 years ago

Should be updated now

comment:9 by Francesco Casella, 6 years ago

We'll see as soon as the master and newInst reports start being updated by OpenModelica commits again.

Last edited 6 years ago by Francesco Casella (previous) (diff)

comment:10 by Francesco Casella, 5 years ago

Milestone: 2.0.01.14.0
Resolution: fixed
Status: newclosed

This is now fixed.

Note: See TracTickets for help on using tickets.