This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_langinfo(): Need to save return under more circumstances
authorKarl Williamson <khw@cpan.org>
Fri, 23 Feb 2018 00:43:16 +0000 (17:43 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 25 Feb 2018 05:08:41 +0000 (22:08 -0700)
commit628ff75a4a7ac013dad43df7a53fcb55bf758ed7
treed2c7e84426f1d9826c58f81a82951b83d905cbf1
parentb20e410261372f568d77e3064b1b57886c331ece
Perl_langinfo(): Need to save return under more circumstances

I forgot that the internal static buffers returned from nl_langinfo()
and localconv() can be destroyed if the locale changes, and not just
from a subsequent call to the function.  Therefore save the results
always.
locale.c