delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/09/15:29:45

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <50747B16.8000209@gmail.com>
Date: Tue, 09 Oct 2012 21:29:26 +0200
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Displaying extended ASCII characters in output of octal dump as hexadecimal
References: <50745E1D DOT 5020208 AT web DOT de>
In-Reply-To: <50745E1D.5020208@web.de>
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

On 10/9/2012 7:25 PM, Olumide wrote:
> When I run octal dump (od) I notice that extended ASCII characters are
> displayed incorrectly as ordinary characters. For example, the extended
> characters 191, 196, and 218 are displayed as '?' , 'D' and 'Z'
> respectively. I thought od was 'anding' the each character with 127, but
> I've been informed that this because my shell/terminal is not configured
> to display non-ASCII characters.
>
> How can I configure Cygwin to display extended characters as in
> hexadecimal format?
>
> Thanks
>
> - Olumide
>

are you sure ?

assuming your 191 is decimal so BF exadecimal

$ cat prova.txt |od -c
0000000 277 \n
0000003

od produces the same output under mintty (TERM=XTERM)
and console (TERM=CYGWIN)
and its output is in octal.

Marco




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

- Raw text -


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