This is the mail archive of the cygwin@sources.redhat.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: file descriptors opened as text files


At 04:10 PM 2/14/01, Jean Delvare wrote:

>Hello.
>
>I am opening a file with open(), and just read() from it. With Win 98, it
>is opened as a binary file. With Win 98 SE, it is opened as text file. How
>is it possible ?
>
>I'm not opening files on a mounted file system, but directly from Windows.
>Isn't supposed to be the same on all Windows versions ?


The output of cygcheck -s -r -v would undoubtedly point to the difference.
My guess is that you are either opening the file in a mounted file system
or the default mode for opening unmounted files is different on the two 
systems.  This has nothing to do with Windows.


Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX
                                        


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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