delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.8 required=5.0 tests=AWL,BAYES_40,RCVD_NUMERIC_HELO,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,TW_BJ,TW_JC,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Oleksandr Gavenko <gavenko AT bifit DOT com DOT ua> |
Subject: | Re: LANG=ru_RU.cp1251, but binutils use UTF-8. |
Date: | Tue, 22 Jun 2010 10:41:41 +0300 |
Lines: | 59 |
Message-ID: | <hvppfb$mr5$1@dough.gmane.org> |
References: | <hvn70o$n5q$1 AT dough DOT gmane DOT org> <AANLkTilCc_NY7Bn0xTWLP5EL5v20mzQVhWBVu-52G6ha AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
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: | <AANLkTilCc_NY7Bn0xTWLP5EL5v20mzQVhWBVu-52G6ha@mail.gmail.com> |
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 |
Note-from-DJ: | This may be spam |
On 22.06.2010 9:00, Andy Koppe wrote: > On 21 June 2010 09:14, Oleksandr Gavenko wrote: >> I globally set LANG=ru_RU.cp1251 for Russian Windows. >> All command work as expected (from coreutils, svn, etc.). >> >> But objdump, nm, objcopy use UTF-8 instead recode to cp1251: >> >> $ objdump --help | head -n 2 >> Рспользование: objdump<опции> <файл(С‹)> >> Отображает информацию РёР· объекта >> <файл(С‹)>. >> $ LANG=C objdump --help | head -n 2 >> Usage: objdump<option(s)> <file(s)> >> Display information from object<file(s)>. > > I can't get objdump to emit anything but an English help message, no > matter the LANG setting. Are you sure you're using Cygwin's objdump, > i.e. what do 'which objdump' and 'objdump --version' say? > bash# uname -a CYGWIN_NT-5.1 gavenko 1.7.1(0.218/5/3) 2009-12-07 11:48 i686 Cygwin bash# echo $LANG ru_RU.CP1251 bash# which objdump /usr/bin/objdump bash# objdump --version GNU objdump (GNU Binutils) 2.19.51.20090704 Copyright 2008 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty. bash# objdump.exe -p npmy.dll npmy.dll: формат файла pei-i386 Характеристики 0x2102 executable 32 bit words DLL .... .... .... I look more carefully on 'objdump' output. It translated partially! (--version output not translated in general) My code parse 'objdump -p' output and expect grep some keywords, which translated. To workaround I use: $ LC_ALL=C objdump -p my.dll | sed '...' So there are two issue with binutils: * partially translated * ignore LANG=ruRU.cp1251 and uses UTF-8 -- 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
webmaster | delorie software privacy |
Copyright 2019 by DJ Delorie | Updated Jul 2019 |