You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is rarely used for files on Unix-like systems. As of May 2019, Microsoft seems to have reversed course and now supports and recommends using UTF-8.[2]
UTF-16 never gained popularity on the web, where it is used by under 0.01% (1 hundredth of 1 percent) of web pages,[3] and UTF-8 dominates.
If a CombiTimeTable is given a UTF16-LE encoded text file of sufficient length (pretty short) it fails with a
Memory allocation error
.I realize the table format requires UTF-8 or ASCII, but a nicer failure mode for such an invalid file would be nice.
To reproduce, create a model with a single CombiTimeTable component pointing to the attached file, and attempt to simulate:
MadeUpTable.txt
The error seems to come from https://github.com/modelica/ModelicaStandardLibrary/blob/master/Modelica/Resources/C-Sources/ModelicaIO.c#L1039 after
bugLen
overflows to negative numbers.The text was updated successfully, but these errors were encountered: