Skip to content

Commit

Permalink
Supported MSCV no longer has a broken localeconv()
Browse files Browse the repository at this point in the history
We no longer support prior to VS 2015, at which point a bug was fixed.
  • Loading branch information
khwilliamson committed Nov 20, 2023
1 parent c4013bc commit 348cc60
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions perl.h
Expand Up @@ -1284,15 +1284,10 @@ typedef enum {
# define USE_PL_CUR_LC_ALL
# endif

/* Microsoft documentation reads in the change log for VS 2015: "The
* localeconv function declared in locale.h now works correctly when
* per-thread locale is enabled. In previous versions of the library, this
* function would return the lconv data for the global locale, not the
* thread's locale." */
/* Assume MingW has the broken localeconv() that Microsoft
* fixed in VS 2015 */
# ifndef _MSC_VER
# define TS_W32_BROKEN_LOCALECONV
# elif _MSC_VER < 1900
# define TS_W32_BROKEN_LOCALECONV
# endif
# endif

Expand Down

0 comments on commit 348cc60

Please sign in to comment.