Home | Contact | Pricing | News | Events | Partners | Mailing List | Site Map
  • Development log
  • Technical papers
  • Live docs

More Resources

Recent Papers

Browse by Technology

Dev Log Archives

Developer Center

[GNAT] Byte Order Mark (BOM) recognition and routine

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 by Posted in Development Log, GNAT Compilation System