[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory leak detected by Valgrind
From: |
Mike Jonkmans |
Subject: |
Re: Memory leak detected by Valgrind |
Date: |
Wed, 16 Jun 2021 00:14:39 +0200 |
On Tue, Jun 15, 2021 at 04:20:22PM -0400, Chet Ramey wrote:
> It depends on the libc implementation of setlocale(3).
>
> This has come up a number of times before:
>
> https://lists.gnu.org/archive/html/bug-bash/2015-07/msg00073.html
> https://lists.gnu.org/archive/html/bug-bash/2017-04/msg00063.html
> https://lists.gnu.org/archive/html/bug-bash/2017-06/msg00052.html
There is also uselocale, newlocale, duplocale and freelocale.
The manual says POSIX.1-2008, so it should be reasonably portable.
Not sure if it is worth the trouble.
Regards, Mike Jonkmans