Skip to content

Commit

Permalink
Fix Perl_langinfo currency symbol for non-nl_langinfo systems
Browse files Browse the repository at this point in the history
Commit 628ff75 broke this.
  • Loading branch information
khwilliamson committed Feb 26, 2018
1 parent 3d79e57 commit a34edee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locale.c
Original file line number Diff line number Diff line change
Expand Up @@ -2581,13 +2581,13 @@ S_my_nl_langinfo(const int item, bool toggle)
{ /* khw couldn't figure out how the localedef specifications
would show that the $ should replace the radix; this is
just a guess as to how it might work.*/
retval = ".";
PL_langinfo_buf[0] = '.';
}
else if (lc->p_cs_precedes) {
retval = "-";
PL_langinfo_buf[0] = '-';
}
else {
retval = "+";
PL_langinfo_buf[0] = '+';
}

LOCALE_UNLOCK;
Expand Down

0 comments on commit a34edee

Please sign in to comment.