Skip to content

Commit 04e87da

Browse files
committed
locale.c Move some code to more appropriate place
Indentation fixes will come in the next commit
1 parent 04de022 commit 04e87da

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

locale.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5222,11 +5222,6 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
52225222
STATIC void
52235223
S_compute_collxfrm_coefficients(pTHX)
52245224
{
5225-
PL_in_utf8_COLLATE_locale = (PL_collation_standard)
5226-
? 0
5227-
: is_locale_utf8(PL_collation_name);
5228-
PL_strxfrm_NUL_replacement = '\0';
5229-
PL_strxfrm_max_cp = 0;
52305225

52315226
/* A locale collation definition includes primary, secondary, tertiary,
52325227
* etc. weights for each character. To sort, the primary weights are
@@ -5289,6 +5284,12 @@ S_compute_collxfrm_coefficients(pTHX)
52895284
char * x_shorter; /* We also transform a substring of 'longer' */
52905285
Size_t x_len_shorter;
52915286

5287+
PL_in_utf8_COLLATE_locale = (PL_collation_standard)
5288+
? 0
5289+
: is_locale_utf8(PL_collation_name);
5290+
PL_strxfrm_NUL_replacement = '\0';
5291+
PL_strxfrm_max_cp = 0;
5292+
52925293
/* mem_collxfrm_() is used get the transformation (though here we
52935294
* are interested only in its length). It is used because it has
52945295
* the intelligence to handle all cases, but to work, it needs some

0 commit comments

Comments
 (0)