This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: binmode + termios + OCRNL + ICRNL



On Mon, Mar 22, 1999 at 06:24:16PM -0800, Earnie Boyd wrote:
>---DJ Delorie <dj@delorie.com> wrote:
>>
>> 
>> I see no reason not to honor bin/text mode as a default starting
>> point, but it should do so by setting up the termios structures
>> properly rather than hacking it, so that if the program fiddles with
>> them after it's open it will do the right thing.
>
>Sounds reasonable to me.

Except that if you have binmode set then you get output like this:
ls 
VMaadhwa            mutt-hardy-1138-1~  rbuild.err          rrn.1137.5
                                                                      VMaadiEa            mutt-hardy-1147-2~  rlicense.out        rrn.1137.6
                                           VMaadifa            mutt-hardy-1147-7~  rrn.1137.0          rrn.1137.7
                VMaahuqa            mutt-hardy-3257-1~  rrn.1137.1          rrn.1137.8
                                                                                      lpq.00002d18        mutt-hardy-3591-3~  rrn.1137.2          rrn.1137.9
                                                           lpq.00005998        mutt-hardy-7737-6~  rrn.1137.3          ssh-cgf
                             morning.out         rbcron.out          rrn.1137.4          vmail.x.gz

cgf