Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 0d9b8f871e57458542b4d94e1fb5682ba2176ab1 https://github.com/Perl/perl5/commit/0d9b8f871e57458542b4d94e1fb5682ba2176ab1 Author: Karl Williamson <k...@cpan.org> Date: 2024-01-02 (Tue, 02 Jan 2024)
Changed paths: M locale.c Log Message: ----------- locale.c: Quit if strftime() returns EINVAL on Win32 It turns out that Windows sets errno to EINVAL when the libc function strftime() finds the input format to be in error, though this is not specified in the Standard (a defect there in my opinion). Quit when an EINVAL errno is detected on Windows. I chose not to change for Windows that the loop exits when the buffer gets large. It seems that it is best to keep a bound, and should it ever be exceeded, we can raise the limit.