@@ -750,19 +750,21 @@ PERLVARI(I, cur_locale_obj, locale_t, LC_GLOBAL_LOCALE)
750
750
#endif
751
751
#ifdef USE_PL_CURLOCALES
752
752
753
- /* This is the most number of categories we've encountered so far on any
754
- * platform, doesn't include LC_ALL */
755
- PERLVARA (I , curlocales , LOCALE_CATEGORIES_COUNT_ , const char * )
753
+ /* Some configurations do not allow perl to query libc to find out what the
754
+ * locale for a given category is. On such platforms this array contains that
755
+ * information, indexed by the perl-defined category index.
756
+ * Note that this array keeps the actual locale for each category. LC_NUMERIC
757
+ * is almost always toggled into the C locale, and the locale it nominally is
758
+ * is stored as PL_numeric_name. */
759
+ PERLVARA (I , curlocales , LOCALE_CATEGORIES_COUNT_ + 1 , const char * )
756
760
757
761
#endif
758
762
#ifdef USE_PL_CUR_LC_ALL
759
-
760
763
PERLVARI (I , cur_LC_ALL , const char * , NULL )
761
-
762
764
#endif
763
765
#ifdef USE_LOCALE_COLLATE
764
766
765
- /* The emory needed to store the collxfrm transformation of a string with
767
+ /* The memory needed to store the collxfrm transformation of a string with
766
768
* length 'x' is predicted by the linear equation mx+b; m=mult, b=base */
767
769
PERLVARI (I , collxfrm_mult ,Size_t , 0 ) /* Expansion factor in *xfrm();
768
770
0 => unknown or bad, depending on
0 commit comments