bug-indent
[Top][All Lists]
Advanced

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

Re: indent-2.2.13 does not set a locale


From: Petr Pisar
Subject: Re: indent-2.2.13 does not set a locale
Date: Wed, 12 Apr 2023 12:58:50 +0200

V Wed, Apr 12, 2023 at 12:35:30PM +0200, Andrej Shadura napsal(a):
> 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.
> 
I went through HAVE_* and USE_* macros, and it seems that the only macro used in
code but missing from config.h is HAVE_SETLOCALE. A patch is attached.

-- Petr

Attachment: indent-2.2.13-Check-for-setlocale-function.patch
Description: Text document

Attachment: signature.asc
Description: PGP signature


reply via email to

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