This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Skip compiling fallback code on modern platforms
authorKarl Williamson <khw@cpan.org>
Fri, 11 Jul 2014 21:42:21 +0000 (15:42 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 12 Jul 2014 14:41:14 +0000 (08:41 -0600)
commit0080c90acf59b31e586bcf1d964eaf3d4220e8a5
treeeb473911f817cdd318ab6dbb27a3526d509e18c0
parent4c17e999c9ee0b1efabb2b96c6fbb1c7a2ad2822
locale.c: Skip compiling fallback code on modern platforms

In the function that determines if a POSIX locale is UTF-8 or not, if
either nl_langinfo or MB_CUR_MAX are defined, it can reliably determine
the answer.  If they are not defined, it uses heuristics to figure
things out as best it can.  This code doesn't add value for those
platforms where one of the two symbols is defined, so can just be
ifdef'd out
locale.c