Mail Archives: cygwin/1997/01/21/20:09:09
------ =_NextPart_000_01BC07BB.DB56AA20
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
One way to eliminate most (possibly all) CR/LF problems
is to mount with the -b option, I don't know why this isn't the
default.
Unfortunatly, after you do this you will have to reinstall from =
scratch, but once you do bash history works properly, (after deleting or =
converting the .bash_history file) ncurses compiles out of the box =
(dosen't quite work right because of some missing capabilities, but I'm =
working on it), same with most GNU tools that have a configure script.
Try it, after the initial pain, it's a BIG win.
Thanks for the input! I actually tried changing the mounting of C: to
binary, but didn't know it would require a "reinstall from scratch",
which is probably why the results were so discouraging.
One question remains, however--does mounting "C:" in binary mode break
non-GNU-Win32 programs? In particular, I use NTemacs which seems to
insist on handling files in text mode. Did I miss something that avoids
the problem?
Not that I could see, in reading through the faq, and online docs
these are the utils I use to convert back and forth, just change deskedit to NTemacs in edit,
fromdos is out of the Slackware distribution, I was going to use utod.exe from DJ, but I couldn't
get it to compile without a rewright, so this is what I came up with.
ps I noticed a reply that says that your question is answered in the NTemacs FAQ, but I will
post these anyway, for anyone who want's to use a regular windoze ( or dos ) text editor
with a binary mount.
------ =_NextPart_000_01BC07BB.DB56AA20
Content-Type: application/octet-stream; name="dospwd.sh"
Content-Transfer-Encoding: base64
IyEvYmluL3NoCnVzYWdlKCl7CmVjaG8gJDAgL3UqKngvcGF0aC9bcHJvZ10uLi4gcmV0dXJucyBj
OlxcZG9zXFxwYXRoXFxbcHJvZ10uLi4KZXhpdCAxCn0KaWYgWyB4IiQxIiA9IHgiIiBdO3RoZW4g
dXNhZ2U7ZmkKaWYgWyAtZCAkMSBdO3RoZW4KCXB1c2hkICQxIDI+L2Rldi9udWxsIDE+L2Rldi9u
dWxsCgljb21tYW5kLmNvbSAvYyBjZAoJcG9wZCAyPi9kZXYvbnVsbCAxPi9kZXYvbnVsbAoJZXhp
dCAwCmVsaWYgWyAtZiAkMSBdO3RoZW4KCXB1c2hkIGBkaXJuYW1lICQxYCAyPi9kZXYvbnVsbCAx
Pi9kZXYvbnVsbAoJZWNobyBgY29tbWFuZC5jb20gL2MgY2R8dHIgLWQgWzpjbnRybDpdYCdcJ2Bi
YXNlbmFtZSAkMWAKCXBvcGQgMj4vZGV2L251bGwgMT4vZGV2L251bGwKZWxzZQoJdXNhZ2UKZmkK
------ =_NextPart_000_01BC07BB.DB56AA20
Content-Type: application/octet-stream; name="edit"
Content-Transfer-Encoding: base64
IyEvYmluL3NoCiMgdGhpcyBpcyBhIGNvbW1lbnQsIGRvbid0IHlvdSBsb3ZlISEgY29tbWVudHMK
RklMRU5BTUU9YGJhc2VuYW1lICQxYApjcCAkMSAvdG1wLyRGSUxFTkFNRQpkZXNrZWRpdCBjOlxc
dG1wXFwkRklMRU5BTUUKZnJvbWRvcyA8IC90bXAvJEZJTEVOQU1FID4gJDEKcm0gL3RtcC8kRklM
RU5BTUUKCg==
------ =_NextPart_000_01BC07BB.DB56AA20
Content-Type: text/plain; name="fromdos.c"
Content-Transfer-Encoding: quoted-printable
/* Copyright 1994,1995 Patrick Volkerding, Moorhead, Minnesota USA=0A=
All rights reserved.=0A=
=0A=
Redistribution and use of this source code, with or without =
modification, is=0A=
permitted provided that the following condition is met:=0A=
=0A=
1. Redistributions of this source code must retain the above =
copyright=0A=
notice, this condition, and the following disclaimer.=0A=
=0A=
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR =
IMPLIED=0A=
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES =
OF=0A=
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. =
IN NO=0A=
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, =
INCIDENTAL,=0A=
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT =
LIMITED TO,=0A=
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR =
PROFITS;=0A=
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF =
LIABILITY,=0A=
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE =
OR=0A=
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN =
IF=0A=
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.=0A=
*/=0A=
=0A=
#include <stdio.h>=0A=
=0A=
int main( int argc, char **argv ) {=0A=
char c;=0A=
if (argc > 1) {=0A=
c =3D *argv[1];=0A=
if (c =3D=3D '-') {=0A=
printf("Usage: fromdos < dostextfile > unixtextfile\n");=0A=
exit(1);=0A=
} =0A=
}=0A=
c =3D getchar();=0A=
while (c !=3D EOF) {=0A=
/* Eat any \r's... they shouldn't be here */=0A=
while (c =3D=3D '\r') c =3D getchar();=0A=
if (c =3D=3D EOF) break;=0A=
putchar(c);=0A=
c =3D getchar();=0A=
} =0A=
return 0;=0A=
}=0A=
------ =_NextPart_000_01BC07BB.DB56AA20
Content-Type: application/octet-stream; name="dtou"
Content-Transfer-Encoding: base64
IyEvYmluL3NoCmlmIFsgeCIkMSIgPSB4IiIgXTt0aGVuIGV4aXQgMTtmaQpmb3IgZmlsZSBpbiAk
KjtkbwoJRj1gYmFzZW5hbWUgJGZpbGVgCgljcCAkZmlsZSAvdG1wLyRGICYmIGZyb21kb3MgPCAv
dG1wLyRGID4gJGZpbGUKCXJtIC90bXAvJEYKZG9uZQo=
------ =_NextPart_000_01BC07BB.DB56AA20--
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -