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,d2bc1c4ca7f04be6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-23 19:26:32 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!205.252.116.205!howland.erols.net!newsfeed.fast.net!yellow.newsread.com!netaxs.com!newsread.com!POSTED.newshog.newsread.com!not-for-mail Message-ID: <39CD67AE.7E56FD87@telepath.com> From: Ted Dennison X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT bug or expectations problem with Text_Io.Text_Streams References: <8qjmp5$189$1@pyrite.mv.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 24 Sep 2000 02:23:23 GMT NNTP-Posting-Host: 38.195.186.125 X-Complaints-To: Abuse Role , We Care X-Trace: newshog.newsread.com 969762203 38.195.186.125 (Sat, 23 Sep 2000 22:23:23 EDT) NNTP-Posting-Date: Sat, 23 Sep 2000 22:23:23 EDT Organization: Telepath Systems (telepath.com) Xref: supernews.google.com comp.lang.ada:771 Date: 2000-09-24T02:23:23+00:00 List-Id: Jeff Creem wrote: > For example, when a byte with 16#0D# is written to the stream it is > followed > autmatically by 16#0A#. (Running on Win 95) looks to me like text_io > is still watching in the background and sees a CR so it sticks in a LF which > is not what I wanted. Its possible that it is the underlying cygwin Unix-to-Windows conversion code that is causing this problem. I had a similar problem with, of all things, tr. I had a file I was editing on a Windows NT platform that needed to have Unix line termination on the target machine or things wouldn't work right. So I figured I'd just use the cygwin "tr" command to translate all the Windows CR line termination characters to the Unix LF line termination character. The problem is, when it got written back out. cygwin apparently translated them back for me. How helpful of it! :-( BTW: For those who are curious, the solution to my problem was to set emacs to use a Unix encoding with the sequence: C-x RET f undecided-unix -- T.E.D. Home - mailto:dennison@telepath.com Work - mailto:dennison@ssd.fsi.com WWW - http://www.telepath.com/dennison/Ted/TED.html ICQ - 10545591