[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: binutils configure locale bug
From: |
nick clifton |
Subject: |
Re: binutils configure locale bug |
Date: |
Tue, 03 Apr 2012 17:39:18 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
Hi Guys,
On 31/03/12 10:20, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
According to Ukrainian translation translators binutils don't load the
translations. My short investigation traced it to the following code:
#if defined (HAVE_SETLOCALE)&& defined (HAVE_LC_MESSAGES)
setlocale (LC_MESSAGES, "");
#endif
#if defined (HAVE_SETLOCALE)
setlocale (LC_CTYPE, "");
#endif
As you can see it's condititional to HAVE_SETLOCALE and
HAVE_LC_MESSAGES. But the corresponding defines go exclusively to
intl/config.h and is not present and hence undefined in other */config.h
used by individual programs.
This appears to be a simple case of some missing configure machinery
which can be fixed by a patch like the one attached. Not being a
configure guru however I wonder if anyone here has any suggestions or
comments on how this ought to be done ?
Cheers
Nick
[binutils|gas|gold|ld]/ChangeLog
2012-04-03 Nick Clifton <address@hidden>
* configure.in (AM_LC_MESSAGES): Add.
(AC_CHECK_FUNCS): Add selocale.
* config.in (HAVE_LC_MESSAGES): Add.
(HAVE_SETLOCALE): Add.
* aclocal.m4: Regenerate.
* configure: Regenerate.
setlocale.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: binutils configure locale bug,
nick clifton <=