This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #128628] divide by 0 in locale.c
It turned out to be possible to divide by 0 in Win32 when trying to find
the strxfrm() of an empty string. On other platforms, the result of
this is consistent with other strings, but on Windows, it is longer than
expected, and the code was trying to adapt to this, dividing by the
input length without checking its validity. This commit just skips the
adapting on a 0-length input.