Skip to content

Commit 3d3a0c7

Browse files
committed
locale.c: Mv line of code later in fcn
This avoids setting this until needed.
1 parent 759f440 commit 3d3a0c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

locale.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,14 +1696,17 @@ S_new_numeric(pTHX_ const char *newnum)
16961696
* such platforms.
16971697
*/
16981698

1699-
PL_numeric_underlying = TRUE;
17001699

17011700
/* Save the new name if it isn't the same as the previous one, if any */
17021701
if (strNE(PL_numeric_name, newnum)) {
17031702
Safefree(PL_numeric_name);
17041703
PL_numeric_name = savepv(newnum);
17051704
}
17061705

1706+
/* We are in the underlying locale until changed at the end of this
1707+
* function */
1708+
PL_numeric_underlying = TRUE;
1709+
17071710
# ifdef USE_POSIX_2008_LOCALE
17081711

17091712
/* We keep a special object for easy switching to */

0 commit comments

Comments
 (0)