summaryrefslogtreecommitdiff
path: root/feature.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-23 20:46:00 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-24 09:25:21 -0800
commit6389c77752f6ccdaf7373d97ae65079e9f58d270 (patch)
tree8b659aea2835563efd8ead32bbcbfd185c99f318 /feature.h
parent6d5e92cd815e54c7272b7f63bc855bc25943ce9e (diff)
downloadperl-6389c77752f6ccdaf7373d97ae65079e9f58d270.tar.gz
use VERSION needs to enable uni8bit hint
Diffstat (limited to 'feature.h')
-rw-r--r--feature.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/feature.h b/feature.h
index b32ff9328b..2d06450628 100644
--- a/feature.h
+++ b/feature.h
@@ -107,6 +107,10 @@ S_enable_feature_bundle(pTHX_ SV *ver)
? FEATURE_BUNDLE_510 :
FEATURE_BUNDLE_DEFAULT
) << HINT_FEATURE_SHIFT;
+ /* special case */
+ assert(PL_curcop == &PL_compiling);
+ if (FEATURE_UNICODE_IS_ENABLED) PL_hints |= HINT_UNI_8_BIT;
+ else PL_hints &= ~HINT_UNI_8_BIT;
}
#endif /* PERL_IN_OP_C */