From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7960 invoked by alias); 1 Oct 2002 18:15:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 7947 invoked from network); 1 Oct 2002 18:15:13 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 1 Oct 2002 18:15:13 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id OAA32074 for ; Tue, 1 Oct 2002 14:18:54 -0400 Received: from catdog (dhcpa182 [10.12.1.182]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id OAA13481 for ; Tue, 1 Oct 2002 14:13:54 -0400 Message-ID: <00f201c26976$2d4020b0$b6010c0a@catdog> From: "Kris Warkentin" To: Subject: CR/NL problem with cpp.exe Date: Tue, 01 Oct 2002 11:15:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-10/txt/msg00044.txt.bz2 Hello, Our Windows hosted development tools are compiled under Cygwin and I'm observing a strange problem with Dos style text files not being pre-processed correctly. Specifically, something like this: printf("This is a long string across\ multiple lines"); or a backslashified #define is being concatenated. Now, if I use the Cygwin cpp.exe, I get the following (expected) behaviour: cpp.exe dosfile.c # works fine - cygwin.dll does input translation cpp.exe < dosfile.c # doesn't work since shell isn't doing input translation However with our cpp, it doesn't work in either case. I've looked at the code for cpp and it doesn't do anything special, just ordinary opens and fopens. From what I understand of the way cygwin.dll works, this should be fine and they should be opened as text files but in our case, it doesn't seem to happen. What am I missing? Is there some sort of define or configure option that I should be using to make this work properly? It can't be $CYGWIN since the cygwin cpp.exe works fine in the same environment as ours so I'm at a complete loss. cheers, Kris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/