This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: sed converts 8-bit input text to 16-bit (Unicode-16?) characters - how to suppress that?
- From: Mike Marchywka <marchywka at hotmail dot com>
- To: <michael dot moser at sunrise dot ch>, <cygwin at cygwin dot com>
- Date: Mon, 30 Mar 2009 12:02:33 -0400
- Subject: RE: sed converts 8-bit input text to 16-bit (Unicode-16?) characters - how to suppress that?
- References: <49D0BF21.9000304@gmail.com> <6B8970CA2CEC4251883E94FAA30B67D1@SEMENTINA>
----------------------------------------
> From: michael.moser@sunrise.ch
> To: cygwin@cygwin.com
> Subject: RE: sed converts 8-bit input text to 16-bit (Unicode-16?) characters - how to suppress that?
> Date: Mon, 30 Mar 2009 17:56:58 +0200
>
>
>> -----Original Message-----
>> From: cygwin-owner@cygwin.com
>> [mailto:cygwin-owner@cygwin.com] On Behalf Of Dave Korn
>> Sent: Montag, 30. März 2009 14:46
>> To: cygwin@cygwin.com
>> Subject: Re: sed converts 8-bit input text to 16-bit
>> (Unicode-16?) characters - how to suppress that?
>>> ...
>> Another possibility is that wordpad or notepad has tried to
>> be clever and gone and unexpectedly saved the original source
>> file in UTF16. Did you verify the original source file in a
>> hexeditor too, Michael?
>
> Yes - I did. The input is stricly one byte/octet per character and
> starts with
> "4e 61 6d 65 09 ..." (= "Name...")
>
> The output starts with:
> "ff fe 4e 00 61 00 6d 00 65 00 09 00 ... "
>
try " sed --version "
>
> Michael
>
>
> --
> 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/
>
_________________________________________________________________
Express your personality in color! Preview and select themes for Hotmail®.
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
--
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/