Inform - Support - Patches

About Patches  


DM4 Errata  

Issue C63019     [previous patch]

ICL preprocessor mishandles EOL characters
Submitted by: Anson Turner     Appeared in: Compiler 6.30     Fixed in: -

The preprocessor which handles ICL commands at the top of the source file, introduced by "!%" characters, fails to respect non-native EOL characters. For example, consider these two lines of ICL:

  !% -~S
  !% -D

The second line is ignored if, for example, the source file uses the Macintosh line-ending convention (0x0D) but the compiler is running on a PC (where the convention is 0x0D0A) or under Unix, including Mac OS X (where the convention is 0x0A).


Supply a replacement for fgets() which accepts cross-platform EOL characters.

Last updated 17 April 2013. This web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Roger Firth.