delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/24/12:47:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: gcc compile problem: error: stray \168 in program
Date: Tue, 24 Feb 2009 17:47:15 +0000 (UTC)
Lines: 39
Message-ID: <loom.20090224T174309-791@post.gmane.org>
References: <22145156 DOT post AT talk DOT nabble DOT com> <22156979 DOT post AT talk DOT nabble DOT com> <49A29E64 DOT 4060300 AT gmail DOT com> <Pine DOT NEB DOT 4 DOT 64 DOT 0902230943420 DOT 25957 AT panix1 DOT panix DOT com> <22185314 DOT post AT talk DOT nabble DOT com> <Pine DOT NEB DOT 4 DOT 64 DOT 0902241118070 DOT 24885 AT panix2 DOT panix DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Tim McDaniel <tmcd <at> panix.com> writes:

> On Tue, 24 Feb 2009, grip <Chandramohan.USecure <at> gmail.com> wrote:
> > 2. Output from od- tx1 -a test.c
> >
> > ---------------------BEGIN-------------------------------
> > 0000000 23 69 6e 63 6c 75 64 65 20 3c 73 74 64 69 6f 2e
> >          #  i  n  c  l  u  d  e sp  <  s  t  d  i  o  .
> 
> THank you for providing that.  I've deleted spaces so that the text
> representations line up under the hex representations (why od doesn't
> do that I don't know; nor do I know how to make od do that).

Making od align output is easy - upgrade to cygwin 1.7 and coreutils 7.0, where 
you will then get my upstream patch that does just that ;)  (and no, I won't 
port coreutils 7.0 to cygwin 1.5; I'm already swamped trying to get coreutils 
7.1 and bash 4.0 built).

> 
> They really ARE umlauts in Latin-1, hex a8 shown above.  Why any other
> program displays them as double quotes is beyond me: od apparently
> strips the high bit to display them (0xa8 becomes 0x28, which is "(");
> DOS codepage 437 would show an inverted question mark.

That's because you used -a, instead of -c.  od --help confirms that -a 
intentionally drops the high bit, producing ambiguous output:

  -a   same as -t a,  select named characters, ignoring high-order bit
  -b   same as -t o1, select octal bytes
  -c   same as -t c,  select ASCII characters or backslash escapes
...
  a          named character, ignoring high-order bit
  c          ASCII character or backslash escape

-- 
Eric Blake
volunteer cygwin coreutils maintainer




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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019