locale don't work for indent-2.2.10

Roumen Petrov <[email protected]> Thu, 18 Feb 2010 22:40:54 +0200
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
Hi all,

Function setlocale (file ./src/indent.c) is called when "#if defined 
(HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) && defined (HAVE_LCCTYPES)".
As I could not found any m4-macro that test for LCCTYPES it seems to me
setlocale is called anymore and all translations stop to work.

Lets try to remove defined (HAVE_LCCTYPES) and to rebuild.

Now problem is by example that Cyrillic translations don't work as 
expected. All Cyrillic characters are replaces by '?'. The gnutext 
documentation  sample use setlocale(LC_ALL, ... instead of 
setlocale(LC_MESSAGES... . No idea where is problem.

Note in my environment indent is updated to gettext version 0.17 and 
with this version translation of all other tested projects work well. 
Also gettext use  setlocale(LC_ALL,.. .

What about to remove defined (HAVE_LCCTYPES) and to use setlocale(LC_ALL,. ?

Roumen