This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LANG=ru_RU.cp1251, but binutils use UTF-8.


On Tue, Jun 29, 2010 at 10:15 PM, Andy Koppe wrote:
>
> Same here. No German either. French and Spanish work, but not quite
> right: it needlessly decomposes accented characters into ASCII
> characters:
>
> $ LANG=es_ES.UTF-8 objdump --help
> Modo de empleo: objdump <opcion(es)> <fichero(s)>
> Muestra la informaci'on de <fichero(s)> objeto.

That's odd because the accented character is there in the .mo (in CP1252 though)

$ hexdump -C /usr/share/locale/es/LC_MESSAGES/binutils.mo | grep -A2 1d330
0001d330  46 0a 00 4d 75 65 73 74  72 61 20 6c 61 20 69 6e  |F..Muestra la in|
0001d340  66 6f 72 6d 61 63 69 f3  6e 20 64 65 20 3c 66 69  |formaci.n de <fi|
0001d350  63 68 65 72 6f 28 73 29  3e 20 6f 62 6a 65 74 6f  |chero(s)> objeto|

$ LANG=fr_FR objdump --help | head -2
Usage: objdump <options> <fichiers>
Afficher les informations depuis les <fichiers> objet.

When I looked at the firts line, I thought "French isn't working either" :)
(That should be Utilisation: ...)

$ cygcheck -l binutils | grep binutils.mo
/usr/share/locale/da/LC_MESSAGES/binutils.mo
/usr/share/locale/es/LC_MESSAGES/binutils.mo
/usr/share/locale/fi/LC_MESSAGES/binutils.mo
/usr/share/locale/fr/LC_MESSAGES/binutils.mo
/usr/share/locale/id/LC_MESSAGES/binutils.mo
/usr/share/locale/ja/LC_MESSAGES/binutils.mo
/usr/share/locale/ro/LC_MESSAGES/binutils.mo
/usr/share/locale/ru/LC_MESSAGES/binutils.mo
/usr/share/locale/rw/LC_MESSAGES/binutils.mo
/usr/share/locale/sk/LC_MESSAGES/binutils.mo
/usr/share/locale/sv/LC_MESSAGES/binutils.mo
/usr/share/locale/tr/LC_MESSAGES/binutils.mo
/usr/share/locale/uk/LC_MESSAGES/binutils.mo
/usr/share/locale/vi/LC_MESSAGES/binutils.mo
/usr/share/locale/zh_CN/LC_MESSAGES/binutils.mo
/usr/share/locale/zh_TW/LC_MESSAGES/binutils.mo

/usr/share/locale/de/LC_MESSAGES/binutils.mo is conspicuously absent.

The Russian messages in /usr/share/locale/ru/LC_MESSAGES/binutils.mo
appear to be encoded in UTF-8; I don't know what iconv is supposed to
do when LANG=ru_RU.cp1251 but outputting UTF-8 to a terminal expecting
CP1251 doesn't sound like the right thing to do.

-- 
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]