This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Pls help: can't rebuild terminfo after installing ncurses


did you get rid of the \r\n's in tst.c?
you now have a un*x system, any "text" that you send to gcc
or cpp must have LF only.

appended is a small program that I rewrote from djgpp source for linux, and
gnu-win32 to convert,
it will do disk files if given them on the command line, ie ./dtou
windows.h
gives you a windows.h with no \r's, ./dtou * converts all files in the
directory
and if called with no arguments stdin|dtou|stdout.
or ./dtou< windows.h > windows.new.

it will not work across mount points, unless they are on the same
filesystem.

if you link it to ./utod, it will convert the other way, \n to \r\n
ln -s dtou.exe utod, at least under win95, this works.

I didn't bother with ^Z since you almost never see it any more as an eof
except that micros*** aparently uses it to protect notes at the end of some
of
their header files.Well what can you expect from a company that is still
selling DOS in 1997 disguised as a GUI?

 ----
From: Bernd Prager <bernd@asterix.gecko.de>
To: Mikey <jeffdb@netzone.com>
Date: Thursday, May 15, 1997 6:31 AM
Subject: Re: Pls help: can't rebuild terminfo after installing ncurses

>
>> Nucrses recognizes systems that define O_BINARY as needing text mode
>>  reads.
>>
>> Solution, remount your filesystems as binary.
>> ie for drv in d e f g;do umount $drv:\\;mount -b $drv:\\ /$drv;done
>> then use registry editor to change fbinary to 1 for /,
>> and reinstall user-tools.exe, and cdk.exe, to fix the header files.
>> you will find that many things work much better.
>>  ----
>
>I done it exactly. Now I can't compile simple programs:
>-------- snip -------------------
>[6]: gcc tst.c
>tst.c:1: syntax error before `<'
>gcc: Internal compiler error: program cc1 got fatal signal 33
>[7]: cat tst.c
><include stdio.h>
>
>main()
>{puts ("hello world!"); }
>
>[9]: mount
>Device           Directory           Type        Flags
>\\.\tape1:       /dev/st1            native      no-mixed,text!=binary
>\\.\tape0:       /dev/st0            native      no-mixed,text!=binary
>\\.\b:           /dev/fd1            native      no-mixed,text!=binary
>\\.\a:           /dev/fd0            native      no-mixed,text!=binary
>c:\gnuwin32\b18  /                   native      no-mixed,text=binary
>-------- snip -------------------
>Did I forgot something?
>Bernd
>_____________________________________________________________________
>Bernd Prager
>GECKO mbH; Wismarsche Str.3, 18057 Rostock; Germany
>http://www.gecko.de
>
>PGP Key fingerprint = 83 54 6A 3B 7A 9D 6C 0E F3 41 CE 99 11 30 B7 D6
>public key by mailto:bpr@gecko.de?Subject=SendPGPKey
>_____________________________________________________________________
> 

dtou.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]