Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 551743390b1b5cb639aefd983c92155da8879f16
      
https://github.com/Perl/perl5/commit/551743390b1b5cb639aefd983c92155da8879f16
  Author: Karl Williamson <k...@cpan.org>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  localeconv: Need to toggle current MONETARY locale to desired one

localeconv() returns the values from the current locale.  Prior to this
commit we weren't always setting the current locale to the desired
LC_MONETARY one which is passed into this function.

Also update the comments for LC_NUMERIC to be accurate in this regard.

I discovered this in testing a rare Configuration that is unlikely to
occur in practice (and which I didn't note down at the time).  Since
LC_MONETARY is kept in the underlying locale, the desired locale is
likely to be that one, so the toggle is likely to be a no-op, which is
why this bug wasn't caught until now.


Reply via email to