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 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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