Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: e903676bc6b85b16b53660d95d7f67cf86756f4c https://github.com/Perl/perl5/commit/e903676bc6b85b16b53660d95d7f67cf86756f4c Author: Karl Williamson <k...@cpan.org> Date: 2023-09-13 (Wed, 13 Sep 2023)
Changed paths: M embedvar.h M intrpvar.h M locale.c M makedef.pl Log Message: ----------- locale.c: Prevent infinite recursion This could happen on the very rare platform that isn't Windows, nor supports nl_langinfo(), and has a buggy (or non-existent) mbtowc(). The code implements nl_langinfo() itself by recursion, and for some locales could end up recursing indefinitely. This commit adds guards to prevent that.