Changes between Version 1 and Version 2 of WritingCompliantLibraries
- Timestamp:
- 2013-06-10T07:54:41Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WritingCompliantLibraries
v1 v2 8 8 Make sure that the library is encoded in UTF-8 or 7-bit ASCII. It is not UTF-8 encoded if OpenModelica says: 9 9 > 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 :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 you can use this (Linux only) : 11 11 {{{ 12 12 find $(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)" ';'