summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-06-02 14:49:30 -0600
committerKarl Williamson <khw@cpan.org>2014-06-05 12:23:02 -0600
commitd6ded95025185cb1ec8ca3ba5879cab881d8b180 (patch)
tree2d5d8e027167706f5a25f1456331ce3e189f1232 /pp_sort.c
parente9efacb9548c04c657ed5e5320168a87934aec52 (diff)
downloadperl-d6ded95025185cb1ec8ca3ba5879cab881d8b180.tar.gz
Add parameters to "use locale"
This commit allows one to specify to enable locale-awareness for only a specified subset of the locale categories. Thus you could make a section of code LC_MESSAGES aware, with no locale-awareness for the other categories.
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sort.c b/pp_sort.c
index 0fe0411347..391480be7d 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1727,7 +1727,7 @@ PP(pp_sort)
? ( ( ( priv & OPpSORT_INTEGER) || all_SIVs)
? ( overloading ? S_amagic_i_ncmp : S_sv_i_ncmp)
: ( overloading ? S_amagic_ncmp : S_sv_ncmp ) )
- : ( IN_LOCALE_RUNTIME
+ : ( IN_LC_RUNTIME(LC_COLLATE)
? ( overloading
? (SVCOMPARE_t)S_amagic_cmp_locale
: (SVCOMPARE_t)sv_cmp_locale_static)