Skip to content

Commit 19a602a

Browse files
committed
intrpvar.h: Comments
1 parent 1f2e6db commit 19a602a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

intrpvar.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -750,19 +750,21 @@ PERLVARI(I, cur_locale_obj, locale_t, LC_GLOBAL_LOCALE)
750750
#endif
751751
#ifdef USE_PL_CURLOCALES
752752

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 *)
756760

757761
#endif
758762
#ifdef USE_PL_CUR_LC_ALL
759-
760763
PERLVARI(I, cur_LC_ALL, const char *, NULL)
761-
762764
#endif
763765
#ifdef USE_LOCALE_COLLATE
764766

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
766768
* length 'x' is predicted by the linear equation mx+b; m=mult, b=base */
767769
PERLVARI(I, collxfrm_mult,Size_t, 0) /* Expansion factor in *xfrm();
768770
0 => unknown or bad, depending on

0 commit comments

Comments
 (0)