Incorrect locale used during read and write operations.
Brought to you by:
clluengo
The documentation to IcsOpen function states: "Append a "l" to mode if, when writing, you don't want the locale forced to "C" (to read ICS files written with some other locale, set the locale properly then open the file with "rl")". However, the 'l' flag works the other way round when reading ics files and it is completely ignored during write operations.
The "l" mode indeed worked the other way around from described in the documentation. I have fixed this now. When writing, the locale is always set to "C" to produce valid ICS files. This is described and explained in the documentation to IcsOpen: http://libics.sourceforge.net/TopLevelFunctions.html#IcsOpen