Fix POSIX::setlocale(): the CRT function returns a pointer to a
authorSteve Hay <SteveHay@planit.com>
Wed, 27 Jun 2007 17:08:01 +0000 (17:08 +0000)
committerSteve Hay <SteveHay@planit.com>
Wed, 27 Jun 2007 17:08:01 +0000 (17:08 +0000)
commit1ba01ae30179f2a8998a11d70df713a205922f5f
tree6f739eb9e499e06698ffde4cbd813b8cb81f1aa0
parent13201e38d406ff98a98fa209237f36b0a2beb8e5
Fix POSIX::setlocale(): the CRT function returns a pointer to a
buffer that may be overwritten by subsequent calls to the CRT
function, so we must make a safe copy of that buffer for our own
use. This fixes lib/locale.t on Win32 with the Borland compiler,
but presumably could affect other compilers too.

p4raw-id: //depot/perl@31482
ext/POSIX/POSIX.xs