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 Message-Id: <5.2.0.9.2.20030112210002.02720e50@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Sun, 12 Jan 2003 21:20:13 -0800 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: Unicode files In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h0D5MW628767 Clancy, Perl has some Unicode modules and Vim (both Cygwin and stand-alone) will edit Unicode files. Most (maybe all?) Gnu text tools are ASCII only. Apropos turns up the Perl modules plus something called "luit." Check it out. Perhaps it might be useful to you. Randall Schulz At 21:18 2003-01-12, Clancy Malcolm wrote: >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/