Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com MIME-Version: 1.0 Message-Id: <3D7BBB58.000003.01996@pexy> Date: Sun, 8 Sep 2002 23:04:24 +0200 Content-Type: Multipart/related; type="multipart/alternative"; boundary="------------Boundary-00=_C715G6G0000000000000" From: "Pieter Prinsloo" X-FID: BA285063-5BCE-11D4-AF8D-0050DAC67E11 X-FVER: 2.0 X-FIT: Letter X-FCOL: Elegant Paper X-FCAT: Stationery X-FDIS: Rice Fields X-Extensions: SU1CTDEsNDEsgUmBSTAkkcGNgZmVTY0wNCxNhYUoiU0kOMEoTYGBjYEoJDSZnSyFhUksSU1CTDIsMCwsSU1CTDMsMCws X-BG: <1618057D-E7D8-4318-B69F-F82B33C557FA> X-BGT: repeat X-BGC: #dce0e3 X-BGPX: 0px X-BGPY: 0px X-ASN: ANIM3D00-NONE-0000-0000-000000000000 X-ASNF: 0 X-ASH: ANIM3D00-NONE-0000-0000-000000000000 X-ASHF: 1 X-AN: 6486DDE0-3EFD-11D4-BA3D-0050DAC68030 X-ANF: 0 X-AP: 6486DDE0-3EFD-11D4-BA3D-0050DAC68030 X-APF: 1 X-AD: C3C52140-4147-11D4-BA3D-0050DAC68030 X-ADF: 0 X-AUTO: X-ASN,X-ASH,X-AN,X-AP,X-AD X-CNT: ; X-Priority: 3 To: Subject: Gawk cr/lf problem --------------Boundary-00=_C715G6G0000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_C715BHK0000000000000" --------------Boundary-00=_C715BHK0000000000000 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi.=0D =0D Hope this is the correct place for this mail.=0D =0D I have quite a few awk program-files that ran =0D without any problems on gawk prior to 3.1.1 -=0D I think it was 3.0.4.=0D =0D During the weekend I upgraded my Cygwin installation=0D and Gawk 3.1.1-2 is now installed.=0D =0D But - ALL my program-files created with DOS type editors=0D and ending in CR/LF now give problems. =0D gawk comes back with error 'invalid char' for each ^M.=0D I have to manually remove the CR at the end of each line to get it to wor= k.=0D And using vim doesn't help as it accepts the CR/LF =0D combination. Effectively I have to open each file as =0D a DOS file and save as a Unix type file - or force it=0D thru FTP to strip the CR's.=0D All would be fine - except in the field - *nix type editors=0D ain't allways available and something like wordpad must =0D make do. And so the problem continues.=0D =0D Am I missing something? Is there an environment variable =0D that suddenly needs setting?=0D =0D Oh and yes - I am running gawk in a cmd shell.=0D But I get the same problem running in bash.=0D =0D For the time being I'm reverting to the previous version=0D of Gawk and the cygwin1.dll.=0D =0D Tx in advance=0D =0D Kind regards=0D PwP=0D =0D Pieter Prinsloo=0D pexy Systems=0D =0D old Chinese saying 'Unless we change direction, we are likely to end up where we are going...' =0D =0D Microsoft apparently thinks that R&D stands for 'Rewrap & Disguise'. --------------Boundary-00=_C715BHK0000000000000 Content-Type: Text/HTML; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =0D =0A
Hi.
 
Hope this is the correct place for this mail.
 
I have quite a few awk program-files that ran
without any problems on gawk prior to 3.1.1 -
I think it wa= s=20 3.0.4.
 
During the weekend I upgraded my Cygwin installation
and Gawk 3.1.1-2 is now installed.
 
But - ALL my program-files created with DOS type editors
and ending in CR/LF now give problems.
gawk comes back with error 'invalid char' for each ^M.
I = have to=20 manually remove the CR at the end of each line to get it to work.
And using vim doesn't help as it accepts the CR/LF
combination. Effectively I have to open each file as
a DOS file and save as a Unix type file - or force it
thru FTP to strip the CR's.
All would be fine - except in the field - *nix type editors
ain't allways available and something like wordpad must
make do. And so the problem continues.
 
Am I missing something? Is there an environment variable
that suddenly needs setting?
 
Oh and yes - I am running gawk in a cmd shell.
But I get the same problem running in bash.
 
For the time being I'm reverting to the previous version
of Gawk and the cygwin1.dll.
 
Tx in advance
 
Kind regards
PwP
 
=20

Pieter Prinsloo
pexy Systems

old Chinese saying 'Unless we change direction, we are lik= ely to=20 end up where we are going...'

=20
Microsoft apparently thinks=20 that R&D stands for 'Rewrap &=20 Disguise'.
____________________________________________________
  IncrediMail - Email has finally evolved -=20
Click=20 Here
--------------Boundary-00=_C715BHK0000000000000-- --------------Boundary-00=_C715G6G0000000000000 Content-Type: image/gif Content-Transfer-Encoding: base64 Content-ID: <4521F408-56E7-4E09-B572-1D6FAB5BB57B> R0lGODlhFAAPALMIAP9gAM9gAM8vAM9gL/+QL5AvAGAvAP9gL////wAAAAAAAAAAAAAAAAAAAAAA AAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJFAAIACwAAAAAFAAPAAAEVRDJSaudJuudrxlEKI6B URlCUYyjKpgYAKSgOBSCDEuGDKgrAtC3Q/R+hkPJEDgYCjpKr5A8WK9OaPFZwHoPqm3366VKyeRt E30tVVRscMHDqV/u+AgAIfkEBWQACAAsAAAAABQADwAABBIQyUmrvTjrzbv/YCiOZGmeaAQAIfkE CRQACAAsAgABABAADQAABEoQIUOrpXIOwrsPxiQUheeRAgUA49YNhbCqK1kS9grQhXGAhsDBUJgZ AL2Dcqkk7ogFpvRAokSn0p4PO6UIuUsQggSmFjKXdAgRAQAh+QQFCgAIACwAAAAAFAAPAAAEEhDJ Sau9OOvNu/9gKI5kaZ5oBAAh+QQJFAAIACwCAAEAEAANAAAEShAhQ6ulcg7Cuw/GJBSF55ECBQDj 1g2FsKorWRL2CtCFcYCGwMFQmBkAvYNyqSTuiAWm9ECiRKfSng87pQi5SxCCBKYWMpd0CBEBACH5 BAVkAAgALAAAAAAUAA8AAAQSEMlJq7046827/2AojmRpnmgEADs= --------------Boundary-00=_C715G6G0000000000000 Content-Type: Image/jpeg Content-ID: <1618057D-E7D8-4318-B69F-F82B33C557FA> Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAHgAA/+4AIUFkb2JlAGTAAAAAAQMA EAMCAwYAAAHbAAAC1gAABZX/2wCEABALCws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