[SOLVED] Fatal: illegal character "#16" ($10) lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- caleb9 · 2011-07-18 06:52 Hi. I have to share codebase between Delphi on Windows and Lazarus on Mac. Recently an error started to occur in Lazarus while compiling: QuoteFatal: illegal character "#16" ($10)Anyone knows how to fix this? Seems like it started to show up sometime after I've set SVN's eol- style property to native but I'm not sure this is the reason. I tried using Code: [Select]dos2unix -c macto convert line breaks of the problematic .pas file, but it tells me "dos2unix: Skipping binary file VoicesUnit.pas". Unix "file" command tells me the file is data but I'm sure it's the right pascal source file... Any hints? :] ---------------------------------------------------------------------- caleb9 · 2011-07-18 07:08 Nevermind. It is a line break. Simply removing it and adding a new one in Lazarus seems to fix it. ---------------------------------------------------------------------- Jonas Maebe · 2011-07-18 09:55 Quote from: caleb9 on July 18, 2011, 09:08:00 amNevermind. It is a line break. Simply removing it and adding a new one in Lazarus seems to fix it. #16 is not a line break. The line break characters are #10 (line feed) and #13 (carriage return), or under Windows #13#10. FPC handles all line break sequences used by current operating systems. #16 is "data link escape". It didn't show up in Lazarus because it's a control character. You probably not only deleted the newline character, but also this invisible control character and that's what fixed the problem. ---------------------------------------------------------------------- caleb9 · 2011-07-19 08:52 Quote from: jmaebe on July 18, 2011, 11:55:12 amQuote from: caleb9 on July 18, 2011, 09:08:00 amNevermind. It is a line break. Simply removing it and adding a new one in Lazarus seems to fix it. #16 is not a line break. The line break characters are #10 (line feed) and #13 (carriage return), or under Windows #13#10. FPC handles all line break sequences used by current operating systems. #16 is "data link escape". It didn't show up in Lazarus because it's a control character. You probably not only deleted the newline character, but also this invisible control character and that's what fixed the problem. Ok, thanks for the clarification.