Changes between Version 1 and Version 2 of WritingCompliantLibraries


Ignore:
Timestamp:
2013-06-10T09:54:41+02:00 (11 years ago)
Author:
bruno
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WritingCompliantLibraries

    v1 v2  
    88Make sure that the library is encoded in UTF-8 or 7-bit ASCII. It is not UTF-8 encoded if OpenModelica says:
    99> Error: The file was not encoded in UTF-8
    10 To solve this, convert the files to UTF-8, or manually modify the sources. To automatically convert all sources if you know the current encoding:
     10To solve this, convert the files to UTF-8, or manually modify the sources. To automatically convert all sources if you know the current encoding you can use this (Linux only) :
    1111{{{
    1212find $(SOURCE_DIRS) -regextype posix-egrep -regex '.*\.(cpp|c|h|mo|tpl)$$' -exec bash -c "iconv -f UTF-8 -t UTF-8 '{}' -o /dev/null 2>tmp || (rm -f tmp && cp '{}' tmp && iconv -f ISO-8859-1 -t UTF-8 tmp -o '{}' && echo Converted {} to UTF-8)" ';'