diff options
author | Karl Williamson <khw@cpan.org> | 2023-04-30 20:36:56 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2023-05-01 06:40:14 -0600 |
commit | 5f951aa0d5804e69ae58fd3c1619b26a5abb3c13 (patch) | |
tree | f39f2a624742c7719d3c27e92714cd09165b9c79 /ext | |
parent | 265a3a4170eb43b0731b6ebd8f14bb25b02cd2e5 (diff) | |
download | perl-5f951aa0d5804e69ae58fd3c1619b26a5abb3c13.tar.gz |
Remove my_strftime8()
The comment from Tony Cook
https://github.com/Perl/perl5/issues/20373#issuecomment-1524256091
made me realize that this function doesn't fully work. It was added as
public API earlier in the 5.37 series, but we don't want it making it
into a stable release. This commit renames it so that the original name
will no longer work, but POSIX.xs can still, by changing to use the new
name.name
Diffstat (limited to 'ext')
-rw-r--r-- | ext/POSIX/POSIX.xs | 2 | ||||
-rw-r--r-- | ext/POSIX/lib/POSIX.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 4e4fae6286..90c8fcf50d 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -3589,7 +3589,7 @@ strftime(fmt, sec, min, hour, mday, mon, year, wday = -1, yday = -1, isdst = -1) * is normally frowned upon as a potential security risk; * but this is part of the API so we have to allow it */ GCC_DIAG_IGNORE_STMT(-Wformat-nonliteral); - buf = my_strftime8(SvPV_nolen(fmt), sec, min, hour, mday, mon, year, wday, yday, isdst, &is_utf8); + buf = my_strftime8_temp(SvPV_nolen(fmt), sec, min, hour, mday, mon, year, wday, yday, isdst, &is_utf8); GCC_DIAG_RESTORE_STMT; sv = sv_newmortal(); if (buf) { diff --git a/ext/POSIX/lib/POSIX.pm b/ext/POSIX/lib/POSIX.pm index a6a32ede94..48b224a36e 100644 --- a/ext/POSIX/lib/POSIX.pm +++ b/ext/POSIX/lib/POSIX.pm @@ -4,7 +4,7 @@ use warnings; our ($AUTOLOAD, %SIGRT); -our $VERSION = '2.12'; +our $VERSION = '2.13'; require XSLoader; |