From 348cc601934041a2eb1ad823ad3ef665b7e5e33f Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 16 Nov 2023 17:26:52 -0700 Subject: [PATCH] Supported MSCV no longer has a broken localeconv() We no longer support prior to VS 2015, at which point a bug was fixed. --- perl.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/perl.h b/perl.h index 3bbd46ba4163..477e59a405e5 100644 --- a/perl.h +++ b/perl.h @@ -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