d35ea2
From e17dadf36f7b4348e59076240c880d0c78b33fa9 Mon Sep 17 00:00:00 2001
d35ea2
From: Karl Williamson <khw@cpan.org>
d35ea2
Date: Tue, 22 Sep 2020 08:47:52 -0600
d35ea2
Subject: [PATCH] sv.h: sv_collxfrm didn't work properly
d35ea2
MIME-Version: 1.0
d35ea2
Content-Type: text/plain; charset=UTF-8
d35ea2
Content-Transfer-Encoding: 8bit
d35ea2
d35ea2
It is supposed to be a wrapper for sv_collxfrm_flags, but it was just
d35ea2
calling sv_cmp_flags instead.  The consequences are none except under
d35ea2
'use locale' in which case you always got the C locale.  I did not add
d35ea2
tests, because it is really a pain to write portable locale tests, and
d35ea2
this doesn't seem to be much used.  In core the '_flags' form was always
d35ea2
used.
d35ea2
d35ea2
Signed-off-by: Petr Písař <ppisar@redhat.com>
d35ea2
---
d35ea2
 sv.h | 2 +-
d35ea2
 1 file changed, 1 insertion(+), 1 deletion(-)
d35ea2
d35ea2
diff --git a/sv.h b/sv.h
d35ea2
index 19ce718ac3..44414b35a9 100644
d35ea2
--- a/sv.h
d35ea2
+++ b/sv.h
d35ea2
@@ -2045,7 +2045,7 @@ Like C<sv_catsv> but doesn't process magic.
d35ea2
 #define sv_eq(sv1, sv2) sv_eq_flags(sv1, sv2, SV_GMAGIC)
d35ea2
 #define sv_cmp(sv1, sv2) sv_cmp_flags(sv1, sv2, SV_GMAGIC)
d35ea2
 #define sv_cmp_locale(sv1, sv2) sv_cmp_locale_flags(sv1, sv2, SV_GMAGIC)
d35ea2
-#define sv_collxfrm(sv, nxp) sv_cmp_flags(sv, nxp, SV_GMAGIC)
d35ea2
+#define sv_collxfrm(sv, nxp) sv_collxfrm_flags(sv, nxp, SV_GMAGIC)
d35ea2
 #define sv_2bool(sv) sv_2bool_flags(sv, SV_GMAGIC)
d35ea2
 #define sv_2bool_nomg(sv) sv_2bool_flags(sv, 0)
d35ea2
 #define sv_insert(bigstr, offset, len, little, littlelen)		\
d35ea2
-- 
d35ea2
2.25.4
d35ea2