bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

locale don't work for indent-2.2.10


From: Roumen Petrov
Subject: locale don't work for indent-2.2.10
Date: Thu, 18 Feb 2010 22:40:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091218 SeaMonkey/2.0.1

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]