Skip to content

Commit

Permalink
locale.c: Add a convenience #define
Browse files Browse the repository at this point in the history
This makes it clear if we are using an array that currently only happens
on non-querylocale systems, but that will change in future commits.
  • Loading branch information
khwilliamson committed May 6, 2021
1 parent ea4b2c7 commit 7625f34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion locale.c
Expand Up @@ -418,6 +418,9 @@ S_category_name(const int category)
# define querylocale_c(cat) querylocale_i(cat##_INDEX_)
# define querylocale_r(cat) querylocale_i(get_category_index(cat,NULL))

# ifndef HAS_QUERYLOCALE
# define USE_PL_CURLOCALES
# endif
# if ! defined(__GLIBC__) || ! defined(USE_LOCALE_MESSAGES)

# define FIX_GLIBC_LC_MESSAGES_BUG(i)
Expand Down Expand Up @@ -3329,7 +3332,7 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
PL_numeric_radix_sv = newSVpvs(".");

# endif
# if defined(USE_POSIX_2008_LOCALE) && ! defined(HAS_QUERYLOCALE)
# ifdef USE_PL_CURLOCALES

/* Initialize our records. If we have POSIX 2008, we have LC_ALL */
do_setlocale_c(LC_ALL, porcelain_setlocale(LC_ALL, NULL));
Expand Down

0 comments on commit 7625f34

Please sign in to comment.