@@ -9653,7 +9653,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
9653
9653
if (PL_collxfrm_base != 0 ) { /* bad collation => skip */
9654
9654
DEBUG_L (PerlIO_printf (Perl_debug_log ,
9655
9655
"mem_collxfrm_: locale's collation is defective\n" ));
9656
- goto bad ;
9656
+ goto bad_not_toggled ;
9657
9657
}
9658
9658
9659
9659
/* (mult, base) == (0,0) means we need to calculate mult and base
@@ -9779,7 +9779,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
9779
9779
DEBUG_L (PerlIO_printf (Perl_debug_log ,
9780
9780
"mem_collxfrm_: Couldn't find any character to replace"
9781
9781
" embedded NULs in locale %s with" , PL_collation_name ));
9782
- goto bad ;
9782
+ goto bad_not_toggled ;
9783
9783
}
9784
9784
9785
9785
DEBUG_L (PerlIO_printf (Perl_debug_log ,
@@ -9920,7 +9920,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
9920
9920
"mem_collxfrm_: Couldn't find any character to"
9921
9921
" replace above-Latin1 chars in locale %s with" ,
9922
9922
PL_collation_name ));
9923
- goto bad ;
9923
+ goto bad_not_toggled ;
9924
9924
}
9925
9925
9926
9926
DEBUG_L (PerlIO_printf (Perl_debug_log ,
@@ -10080,7 +10080,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
10080
10080
if (UNLIKELY (! xbuf )) {
10081
10081
DEBUG_L (PerlIO_printf (Perl_debug_log ,
10082
10082
"mem_collxfrm_: Couldn't malloc %zu bytes\n" , xAlloc ));
10083
- goto bad ;
10083
+ goto bad_not_toggled ;
10084
10084
}
10085
10085
10086
10086
/* Store the collation id */
@@ -10276,6 +10276,10 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
10276
10276
DEBUG_L (print_collxfrm_input_and_return (s , s + len , NULL , 0 , utf8 ));
10277
10277
CLEANUP_STRXFRM ;
10278
10278
10279
+ bad_not_toggled :
10280
+
10281
+ DEBUG_L (print_collxfrm_input_and_return (s , s + len , NULL , 0 , utf8 ));
10282
+
10279
10283
Safefree (xbuf );
10280
10284
* xlen = 0 ;
10281
10285
0 commit comments