Developer Center |
Tuesday October 23, 2007
A new unit (GNAT.Byte_Order_Mark in g-byorma.adb/ads) provides the capability of reading the byte order mark (BOM) at the start of a file which indicates what encoding is used in the file. The compiler now uses this routine to recognize a UTF-8 BOM at the start of the file (as standardly placed there by operating systems such as Windows-XP and Vista), and automatically set the encoding of the file to UTF-8.
Posted
in Development Log, GNAT Compilation System