Add USE_LOCALE{,_COLLATE,_CTYPE,_NUMERIC} to the output of perl -V
authorNicholas Clark <nick@ccl4.org>
Fri, 20 May 2011 11:16:57 +0000 (12:16 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 20 May 2011 11:16:57 +0000 (12:16 +0100)
These 4 compile-time options should be reported, as they have affect the
behaviour of the interpreter binary (albeit only in a small area). They don't
affect binary compatibility.

perl.c

diff --git a/perl.c b/perl.c
index 8e918c2..4dc5bad 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -1706,6 +1706,18 @@ S_Internals_V(pTHX_ CV *cv)
 #  ifdef USE_FAST_STDIO
                             " USE_FAST_STDIO"
 #  endif              
+#  ifdef USE_LOCALE
+                            " USE_LOCALE"
+#  endif
+#  ifdef USE_LOCALE_COLLATE
+                            " USE_LOCALE_COLLATE"
+#  endif
+#  ifdef USE_LOCALE_CTYPE
+                            " USE_LOCALE_CTYPE"
+#  endif
+#  ifdef USE_LOCALE_NUMERIC
+                            " USE_LOCALE_NUMERIC"
+#  endif
 #  ifdef USE_PERL_ATOF
                             " USE_PERL_ATOF"
 #  endif