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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ae711c481a7059 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-07 06:41:14 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Can I treat Current_Output as a file of bytes? Date: 7 Nov 2002 06:41:13 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0211070641.7f9f8c20@posting.google.com> References: <20021104233454.2042ef78.bjorn_persson.spam-is-evil@sverige.nu> <4519e058.0211050630.7eb31354@posting.google.com> <20021105170130.2684e53f.bjorn_persson.spam-is-evil@sverige.nu> <4519e058.0211051427.48557033@posting.google.com> <20021107014453.6774d605.bjorn_persson.spam-is-evil@sverige.nu> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1036680073 8695 127.0.0.1 (7 Nov 2002 14:41:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 Nov 2002 14:41:13 GMT Xref: archiver1.google.com comp.lang.ada:30526 Date: 2002-11-07T14:41:13+00:00 List-Id: Bj rn Persson wrote in message news:<20021107014453.6774d605.bjorn_persson.spam-is-evil@sverige.nu>... > It seems to work well for output, Cool! > but I've run into problems with input. Drat. :-) > turns out that Get_Immediate (or rather some underlying C routine) > translates CR LF to a single LF when running in Windows, and I can't find > any other way to check if input is available. Neither can I push back what I know Cygwin does that. Gnat doesn't use Cygwin though, it uses MinGW. Perhaps MinGW does it too. If so, there's no way you are getting those CR's back without calling out to Win32. I'm a little shaky on what your problem with this is, though.