[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with backslash/newline on DOS/Windows/OS2/etc.?

From: Earnie Boyd
Subject: Re: Problem with backslash/newline on DOS/Windows/OS2/etc.?
Date: Thu, 7 Jul 2005 13:03:02 +0000

On 12:19:19 pm 2005-07-07 address@hidden wrote:
> Please see this bug and my followup comment:
> 5
> As you may have noticed in the NEWS file for the beta3 release I
> referred to this situation, and I'm especially concerned about
> DOS/Windows/OS2 versions of GNU make due to the complexity surrounding
> their shell commands.
> Has anyone on the list looked into this change and verified whether
> some kind of special case needs to be made for those platforms,
> perhaps when make detects we're not using a UNIX-y shell or something?

The issue is the \r\n line endings so the \ is escaping the \r and not the
\n.  Open the Makefile file in binary mode or use the _setmode function on
the already opened file then when reading a line remove (set to null) the
trailing \r if it exists before processing the line.

Rereading the problem, I'm have second thoughts about the above.  Is the
issue sed, or the double \\, or make?  If make then the above should take
care of the issue.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]