From 6125a5e74d95da8dad5982a6bf7c8cbe3801e632 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 5 Dec 2022 07:46:27 -0700 Subject: locales: Add LC_NAME capabilities LC_NAME is a GNU extension that Perl hadn't been aware of. The consequences were that it couldn't be set or queried in Perl (except by using LC_ALL to set everything). There are other GNU extensions that Perl has long known about; this was the only missing one. The values associated with this category are retrievable by the glibc call nl_langinfo(3) in XS code. The standard-specified items are retrievable from pure Perl via I18N::Langinfo, but it doesn't know only about any of the non-standard ones, including the ones for this category. --- intrpvar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intrpvar.h') diff --git a/intrpvar.h b/intrpvar.h index 4dcc9149f0..d0168adc7c 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -745,7 +745,7 @@ PERLVARI(I, cur_locale_obj, locale_t, NULL) /* This is the most number of categories we've encountered so far on any * platform, doesn't include LC_ALL */ -PERLVARA(I, curlocales, 11, const char *) +PERLVARA(I, curlocales, 12, const char *) #endif #ifdef USE_PL_CUR_LC_ALL -- cgit v1.2.1