X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.3 required=5.0 tests=AWL,BAYES_50,RCVD_NUMERIC_HELO,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,TW_BJ,TW_XD,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Oleksandr Gavenko Subject: Re: LANG=ru_RU.cp1251, but binutils use UTF-8. Date: Tue, 29 Jun 2010 17:13:13 +0300 Lines: 40 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Note-from-DJ: This may be spam On 29.06.2010 15:52, Csaba Raduly wrote: > On Tue, Jun 29, 2010 at 10:32 AM, Oleksandr Gavenko wrote: >> $ objdump --help | head -n 2 | hexl >> 00000000: d098 d181 d0bf d0be d0bb d18c d0b7 d0be ................ > (snipped) > > These bytes sure look like UTF-8. According to > http://software.hixie.ch/utilities/cgi/unicode-decoder/utf8-decoder > > U+0418 CYRILLIC CAPITAL LETTER I character (И) > U+0441 CYRILLIC SMALL LETTER ES character (с) > U+043F CYRILLIC SMALL LETTER PE character (п) > U+043E CYRILLIC SMALL LETTER O character (о) > U+043B CYRILLIC SMALL LETTER EL character (л) > U+044C CYRILLIC SMALL LETTER SOFT SIGN character (ь) > U+0437 CYRILLIC SMALL LETTER ZE character (з) > (snipped) > > As raw characters: > > Использование: objdump<опции> <файл(ы)> > Отображает информацию из объекта<файл(ы)>. > > But I can't get that output out of > CYGWIN_NT-6.0 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin > and > GNU objdump (GNU Binutils) 2.20.51.20100410 > > However, I did manage to get apparently correct cp1251 (see below; > also utf8 with LANG=ru_RU.utf8) out of > CYGWIN_NT-6.0 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin > and > GNU objdump (GNU Binutils) 2.18.50.20080625 > > 14:40:47 $ LANG=ru_RU.cp1251 objdump --help | head -2 | hexdump -C > 00000000 c8 f1 ef ee eb fc e7 ee e2 e0 ed e8 e5 3a 20 6f |.............: o| > 00000010 62 6a 64 75 6d 70 20 3c ee ef f6 e8 e8 3e 20 3c |bjdump<.....> <| > (snip) > OK. I try get last Cygwin installation, may be bug goes out. -- 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