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

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,MISSING_HEADERS,RCVD_IN_JMF_BR,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: Tue, 24 Feb 2009 11:26:58 -0600 (CST)
From: Tim McDaniel <tmcd AT panix DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: gcc compile problem: error: stray \168 in program
In-Reply-To: <22185314.post@talk.nabble.com>
Message-ID: <Pine.NEB.4.64.0902241118070.24885@panix2.panix.com>
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>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Tue, 24 Feb 2009, grip <Chandramohan DOT USecure AT gmail DOT 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  .
> 0000020 68 3e 0a 0a 69 6e 74 20 6d 61 69 6e 28 29 0a 20
>          h  > nl nl  i  n  t sp  m  a  i  n  (  ) nl sp
> 0000040 7b 0a 70 72 69 6e 74 66 28 a8 54 65 73 74 20 74
>          { nl  p  r  i  n  t  f  (  (  T  e  s  t sp  t
> 0000060 68 69 73 a8 29 3b 0a 72 65 74 75 72 6e 28 30 29
>          h  i  s  (  )  ; nl  r  e  t  u  r  n  (  0  )
> 0000100 3b 0a 20 7d 0a
>          ; nl sp  } nl
> 0000105
> ---------------------END-------------------------------

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).

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.

Anyway, go into your editor, delete the "quotation marks" that are
around the string, and retype them with the " key that's probably next
to Enter on your keyboard.  Then re-do od as above to make sure that
they show up as ", hex code 22, instead of a8 or anything else.

-- 
Tim McDaniel, tmcd AT panix DOT com

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