if (locale == (locale_t) NULL)
n=vfprintf(file,format,operands);
else
+#if defined(__APPLE__)
+ n=vfprintf_l(file,locale,format,operands);
+#else
n=vfprintf_l(file,format,locale,operands);
+#endif
}
#else
#if defined(MAGICKCORE_HAVE_USELOCALE)
n;
#if defined(MAGICKCORE_HAVE_VSNPRINTF_L)
- n=vsnprintf_l(string,length,format,(locale_t) NULL,operands);
+ {
+ locale_t
+ locale;
+
+ locale=AcquireCLocale();
+ if (locale == (locale_t) NULL)
+ n=vsnprintf(string,length,format,operands);
+ else
+#if defined(__APPLE__)
+ n=vsnprintf_l(string,length,locale,format,operands);
+#else
+ n=vsnprintf_l(string,length,format,locale,operands);
+#endif
+ }
#elif defined(MAGICKCORE_HAVE_VSNPRINTF)
#if defined(MAGICKCORE_HAVE_USELOCALE)
{