delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/09/16:19:15

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 9 Apr 2008 22:18:39 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Using windows text mode without setup.exe
Message-ID: <20080409201839.GQ23852@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20080409145136 DOT b3kibhnxhcwscws0 AT webmail DOT seas DOT upenn DOT edu> <Pine DOT LNX DOT 4 DOT 62 DOT 0804091234470 DOT 17660 AT dd DOT tc DOT fluke DOT com> <001b01c89a79$ead691b0$2708a8c0 AT CAM DOT ARTIMI DOT COM>
MIME-Version: 1.0
In-Reply-To: <001b01c89a79$ead691b0$2708a8c0@CAM.ARTIMI.COM>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Apr  9 20:43, Dave Korn wrote:
> David Dyck wrote on 09 April 2008 20:37:
> 
> > On Wed, 9 Apr 2008 at 11:51 -0700, mjumbe@... wrote:
> > 
> >> ....  The application needs read from and write to files in
> >> text mode (i.e. using CRLF format).  This works fine on my development
> >> machine, because I can just use the Cygwin setup program to specify
> >> the Windows text mode as default.  However, when I package up my
> >> distribution with the Cygwin dll and install it elsewhere, the program
> >> writes UNIX linefeeds.
> > 
> > http://www.cygwin.com/cygwin-ug-net/using-textbinary.html
> > 
> >      In the open() function call, binary mode can be specified with the
> >      flag O_BINARY and text mode with O_TEXT. 
> 
>   Alternatively, if you don't want to go through your application fixing the
> file open calls, you can just link it against textmode.o, which will cause all
> your files to be opened in textmode by default.  See also
> 
> http://cygwin.com/ml/cygwin/2002-10/msg00152.html

Alternatively, consider *NOT* to ship the Cygwin DLL with your
application, and if you do, please test if a normal Cygwin release is
already installed on the machine and use it if it exists instead of
installing your own Cygwin DLL.  Otherwise your users will have trouble
no end.  Also, keep in mind that this mailing list will not support your
users which have trouble with multiple Cygwin DLL installations.  It's
not supported.  If possible, don't do it.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019