develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #38193] embedded perl always calls setlocale(LC_ALL,"")

From:
Karl Williamson via RT
Date:
July 10, 2013 04:27
Subject:
[perl #38193] embedded perl always calls setlocale(LC_ALL,"")
Message ID:
rt-3.6.HEAD-2552-1373430438-1080.38193-15-0@perl.org
This is fixed by commit ccd65d51403426e176072af492d832677521af9f

This commit causes the locale initialization to skip calling
setlocal(foo, "") if the environment variable PERL_SKIP_LOCALE_INIT is
set.  Instead, the setup code calls setlocale(LC_ALL, NULL) (plus other
similar calls for the subcategories) in order to find out what the
current locale is.
     
The original poster for this ticket has a workaround for it which
involves using a modified copy of Perl core code.  This patch defines
the C preprocessor variable HAS_SKIP_LOCALE_INIT that can be used by XS
writers to discover if the current Perl version needs the workaround or
not.

-- 
Karl Williamson

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=38193



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About