From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ced04d0f82bf1abe X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 16 Sep 2007 07:16:08 +0200 From: Gautier User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Missing CR/LF in Gnat files? References: <13eomjrhjs3al0a@corp.supernews.com> <1189897537.544300.214650@g4g2000hsf.googlegroups.com> <13eoqg17ac9kp58@corp.supernews.com> In-Reply-To: <13eoqg17ac9kp58@corp.supernews.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.76.162.154 X-Original-NNTP-Posting-Host: 83.76.162.154 Message-ID: <46ecbbdf$1_7@news.bluewin.ch> X-Trace: news.bluewin.ch 1189919711 83.76.162.154 (16 Sep 2007 07:15:11 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:1950 Date: 2007-09-16T07:16:08+02:00 List-Id: Phaedrus wrote: > Anybody remember anything like that? This is definitely a UNIX end-of-line problem. Try harder with your unix2dos (if it works, e.g. with LF & CR/LF mixtures!)... Indeed, this "Any_filesystem_2_My_filesystem" works pretty well: -- Transforms line ends from input to output with host convention -- Stands for Unix2DOS and the like. -- -- LF: Unix and Unix-like systems, Linux, AIX, Xenix, Mac OS X,... -- CR+LF: CP/M, MP/M, DOS, OS/2, Microsoft Windows -- CR: Commodore machines, Apple II family and Mac OS through version 9 with Ada.Text_IO; use Ada.Text_IO; procedure Redo_EOLs is s: String(1..32_768); l: Natural; begin while not End_of_File(Standard_input) loop Get_Line(s,l); Put_Line(s(1..l)); end loop; end Redo_EOLs; redo_eols dest.txt and that's it! HTH ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!