X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49D13333.3020806@gmail.com>
Date: Mon, 30 Mar 2009 22:01:39 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: sed converts 8-bit input text to 16-bit (Unicode-16?) 	characters  - how to suppress that?
References: <21F96204FB10403FB43CFA97A7D4BBC8@SEMENTINA>
In-Reply-To: <21F96204FB10403FB43CFA97A7D4BBC8@SEMENTINA>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Michael Moser wrote:
> 
>> -----Original Message-----

  BTW please trim the redundant headers... it's really considerate not to post
people's email addresses in the body of your post because if you do so they
get harvested by spammers.

>> I tried with input files 
>> containing german umlauts and sed does not convert to wide 
>> char and it does not produce a BOM marker at the start of the file.
> 
> Maybe that conversion comes from me redirecting the output to a file
> using 
> 'sed {options} > filename.ext'  ?!? I'll have to verify that!

  What terminal/console are you using?  Unicode RXVT by any chance?  How does
it behave in other consoles?

  You can edit a file in-place by using the -i option to sed.

    cheers,
      DaveK

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

