This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Fix bug in parsing a locale
authorKarl Williamson <khw@cpan.org>
Sun, 4 Mar 2018 02:21:03 +0000 (19:21 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 4 Mar 2018 02:55:58 +0000 (19:55 -0700)
commitbee74f4b9818f0ca72926dd6b4dfdbc6b75c59ef
treef8ac6eab24746dbaf9db26b250933b0370187b95
parent6435f98d18bc6192cd7afc7967e7cb106106c995
locale.c: Fix bug in parsing a locale

This was not handling the case where there is a semi-colon separated
list of individual locales, except the last one had no trailing
semi-colon.

Thanks to Sergey Aleynikov for finding this
locale.c
t/run/locale.t