[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indent-2.2.13 does not set a locale
From: |
Andrej Shadura |
Subject: |
Re: indent-2.2.13 does not set a locale |
Date: |
Wed, 12 Apr 2023 12:35:30 +0200 |
User-agent: |
Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6 |
Hi,
On Wed, 12 Apr 2023, at 12:21, Petr Pisar wrote:
> I noticed that indent-2.2.13 stopped printing localized messages:
> That's because setlocale() is not called in src/indent.c:
>
> #if defined (HAVE_SETLOCALE)
> setlocale(LC_ALL, "");
> #endif
>
> because HAVE_SETLOCALE is not defined in config.h.
>
> It seems that configure.ac ported to autoconf-2.71
> (AC_CHECK_INCLUDES_DEFAULT?) stopped checking for setlocale() and defining the
> macro. Actually diffing config.h between 2.2.12 and 2.2.13, both generated
> with the same autoconf, shows plenty of removed macros. So HAVE_SETLOCALE
> might be not the only missing feature.
Thanks. That's concerning, I'll have a look.
--
Cheers,
Andrej