Skip to content

Commit dc97a3e

Browse files
committed
locale.c: Move some code to a bit later
This is in preparation for a future commit to make the critical section this comes after a bit larger, so move it to after what will be the new critical section.
1 parent 804ed84 commit dc97a3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

locale.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4302,18 +4302,18 @@ S_my_langinfo_i(pTHX_
43024302
retval = save_to_buffer(nl_langinfo(item), retbufp, retbuf_sizep);
43034303
gwLOCALE_UNLOCK;
43044304

4305-
if (utf8ness) {
4306-
*utf8ness = get_locale_string_utf8ness_i(retval,
4307-
LOCALE_UTF8NESS_UNKNOWN,
4308-
locale, cat_index);
4309-
}
4310-
43114305
restore_toggled_locale_i(cat_index, orig_switched_locale);
43124306

43134307
# ifdef USE_LOCALE_CTYPE
43144308
restore_toggled_locale_c(LC_CTYPE, orig_CTYPE_locale);
43154309
# endif
43164310

4311+
if (utf8ness) {
4312+
*utf8ness = get_locale_string_utf8ness_i(retval,
4313+
LOCALE_UTF8NESS_UNKNOWN,
4314+
locale, cat_index);
4315+
}
4316+
43174317
return retval;
43184318
/*--------------------------------------------------------------------------*/
43194319
# else /* Below, emulate nl_langinfo as best we can */

0 commit comments

Comments
 (0)