This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Avoid extra call to mbtowc()
authorKarl Williamson <khw@cpan.org>
Mon, 11 Sep 2017 23:32:42 +0000 (17:32 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 9 Nov 2017 03:52:52 +0000 (20:52 -0700)
commit51fc4b19eb5af1211f960bc49d322c020490bc61
tree7990abd0a9a52e0dbbe04c1b6afb12137cef1fed
parentff1b739b7e749b9f4005279ddb782cb23a2322a9
locale.c: Avoid extra call to mbtowc()

This is done only when debugging, but in some locales that have shift
states, the extra call could blow up.  Instead save the result of the
mbtowc() call we care about.
locale.c