Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <F1B91355CC52D3119412004F4E0286AF78E309@msx1.link.domnet.com.au>
From: Clancy Malcolm <clancym@domnet.com.au>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Unicode files
Date: Mon, 13 Jan 2003 15:18:50 +1000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-OriginalArrivalTime: 13 Jan 2003 05:18:48.0903 (UTC) FILETIME=[40D73570:01C2BAC3]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h0D4IWf11539

Can cygwin programs like grep process a unicode file?

I have a Windows 2000 backup log file which seems to be a unicode file.
When I cat the file under cygwin it displays with spaces between every
second character: e.g.

ÿ_B a c k u p   S t a t u s
 O p e r a t i o n :   B a c k u p
 A c t i v e   b a c k u p   d e s t i n a t i o n :   4 m m   D D S
 M e d i a   n a m e :   " T S C 4 - 2 0 0 3 - 0 1 - 1 3 - 2 - 3 5 p "

When I cat in under linux it displays as a normal text file.  I have a
script which grep's for particular patterns and emails matching lines, but
it won't work with these log files.

Any suggestions greatly appreciated.

Regards,
Clancy Malcolm



--
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/

