From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Demmer, Thomas" To: 'Ulrich Koehler' , cygwin@sourceware.cygnus.com Subject: RE: LF vs. CR/LF (WAS: Problems with libtiff!) Date: Mon, 21 Jun 1999 05:10:00 -0000 Message-id: <8D861ADC5B8FD211B4100008C71EA7DADCF85E@KJSDEMUCSHREXC1> X-SW-Source: 1999-06/msg00464.html Just to add my 2 cents to that: The source of the zip program suite shows a quite nice way how to handle that difference on various platforms. Should be mandatory for all ports ;-) Ciao Tom > -----Original Message----- > From: Ulrich Koehler [SMTP:koehler@mvt.tu-clausthal.de] > Sent: Monday, June 21, 1999 1:01 PM > To: cygwin@sourceware.cygnus.com > Subject: LF vs. CR/LF (WAS: Problems with libtiff!) > > Hello, > > first of all: thank you for your help! > This RTFM! goes to me. I was not aware of the CR/LF > problem and the differences between text and binary > mode because I never browsed through the documentation. > I did not even know that you can open files in text-mode, > it sounds like a strange idea to me. Because I'm working > on many platforms, I create and edit only text files with > UNIX-style line-endings on Windows and I'm trying to keep > my environment CR/LF-free. > > Will I experience problems within the cygwin-environment, > if I use only text=binary mounts? > > BTW: > I've changed the single open() call in the libtiff-source to > open the file as binary ( If I remember correctly the value > O_BINARY is defined, I added '|0x100000' to the mode bits). > It now seems to work now even with > my default text!=binary mount. I could compile and link > my application and used it without problems. > I wrote 'it seems to work', because the 'thumbnail' binary > still does not work. Maybe there is another reason why, > 'tiff2ps' does work. > I do not have the knowlegde to make a complete port using > the configure script and I still want to be sure that I did > the right thing. > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe@sourceware.cygnus.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Demmer, Thomas" To: 'Ulrich Koehler' , cygwin@sourceware.cygnus.com Subject: RE: LF vs. CR/LF (WAS: Problems with libtiff!) Date: Wed, 30 Jun 1999 22:10:00 -0000 Message-ID: <8D861ADC5B8FD211B4100008C71EA7DADCF85E@KJSDEMUCSHREXC1> X-SW-Source: 1999-06n/msg00464.html Message-ID: <19990630221000.OzWGZddUUiKET83b6C4rEOChvlLfklJAUyCUfluB-eY@z> Just to add my 2 cents to that: The source of the zip program suite shows a quite nice way how to handle that difference on various platforms. Should be mandatory for all ports ;-) Ciao Tom > -----Original Message----- > From: Ulrich Koehler [SMTP:koehler@mvt.tu-clausthal.de] > Sent: Monday, June 21, 1999 1:01 PM > To: cygwin@sourceware.cygnus.com > Subject: LF vs. CR/LF (WAS: Problems with libtiff!) > > Hello, > > first of all: thank you for your help! > This RTFM! goes to me. I was not aware of the CR/LF > problem and the differences between text and binary > mode because I never browsed through the documentation. > I did not even know that you can open files in text-mode, > it sounds like a strange idea to me. Because I'm working > on many platforms, I create and edit only text files with > UNIX-style line-endings on Windows and I'm trying to keep > my environment CR/LF-free. > > Will I experience problems within the cygwin-environment, > if I use only text=binary mounts? > > BTW: > I've changed the single open() call in the libtiff-source to > open the file as binary ( If I remember correctly the value > O_BINARY is defined, I added '|0x100000' to the mode bits). > It now seems to work now even with > my default text!=binary mount. I could compile and link > my application and used it without problems. > I wrote 'it seems to work', because the 'thumbnail' binary > still does not work. Maybe there is another reason why, > 'tiff2ps' does work. > I do not have the knowlegde to make a complete port using > the configure script and I still want to be sure that I did > the right thing. > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe@sourceware.cygnus.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com