summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2023-04-07 09:38:42 -0600
committerKarl Williamson <khw@cpan.org>2023-04-15 15:54:07 -0600
commitf3b2b844051098b4b4e7d4de6673c917b30cbc32 (patch)
tree0ad74006805d69cd18a3dc84e0786fc0d13a286e /locale.c
parentef3d6bb0585bddf39d7c487f61c9f0572629315c (diff)
downloadperl-f3b2b844051098b4b4e7d4de6673c917b30cbc32.tar.gz
locale.c: Update comment
This comment did not reflect what is actually now happening.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/locale.c b/locale.c
index fc54f8f438..2005c000a4 100644
--- a/locale.c
+++ b/locale.c
@@ -6426,9 +6426,8 @@ Perl_strxfrm(pTHX_ SV * src)
{
PERL_ARGS_ASSERT_STRXFRM;
- /* For use by POSIX::strxfrm(). The PV in an SV is controlled by LC_CTYPE,
- * not LC_COLLATE. If the locales for the two categories differ, LC_CTYPE
- * should win out.
+ /* For use by POSIX::strxfrm(). If they differ, toggle LC_CTYPE to
+ * LC_COLLATE to avoid potential mojibake.
*
* If we can't calculate a collation, 'src' is instead returned, so that
* future comparisons will be by code point order */