This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Avoid writing libc static storage
authorKarl Williamson <public@khwilliamson.com>
Thu, 12 Dec 2013 02:00:15 +0000 (19:00 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 4 Jan 2014 20:33:04 +0000 (13:33 -0700)
commitb07fffd1fe5d47918a00b18619bc086060f79273
treea48ae81b227e9f910436f0fa90d0f9d49a147482
parent94d52e62247721b810f3584a444b7d4b243b685b
locale.c: Avoid writing libc static storage

I don't believe this code was causing any problem, but it can overwrite
static storage returned by setlocale().  It's safer to create a copy
first.
locale.c