develooper Front page | perl.perl5.changes | Postings from January 2022

[Perl/perl5] 5a7380: Specify PERL_USE_SAFE_PUTENV when configuringASCI...

Karl Williamson via perl5-changes
January 1, 2022 23:05
[Perl/perl5] 5a7380: Specify PERL_USE_SAFE_PUTENV when configuringASCI...
Message ID:
  Branch: refs/heads/blead
  Commit: 5a738012a711a4d40f6be4ca90c5b62cb17c1f19
  Author: Mike Fulton <>
  Date:   2022-01-01 (Sat, 01 Jan 2022)

  Changed paths:
    M hints/

  Log Message:
  Specify PERL_USE_SAFE_PUTENV when configuring ASCII z/OS builds

The Perl code expects that the ``environ`` global variable can be
re-allocated to new storage and then have entries added and removed from
it. This isn't supported by z/OS when in Bi-Modal mode and so
_PERL_USE_SAFE_PUTENV_ macro is defined to use the _env_ services to
manipulate ``environ`` instead of doing so directly. It is not clear if
it is valid to re-allocate storage for the ``environ`` global variable
or not, although it is worth pursuing with the z/OS development team as
a longer-term potential fix. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About