static void
_emit_stderr_warning_for_legacy_locale(const _PyCoreConfig *core_config)
{
- if (core_config->coerce_c_locale_warn) {
- if (_Py_LegacyLocaleDetected()) {
- fprintf(stderr, "%s", _C_LOCALE_WARNING);
- }
+ if (core_config->coerce_c_locale_warn && _Py_LegacyLocaleDetected()) {
+ PySys_FormatStderr("%s", _C_LOCALE_WARNING);
}
}
*/
_PyRuntime.finalizing = NULL;
-#ifndef MS_WINDOWS
- _emit_stderr_warning_for_legacy_locale(core_config);
-#endif
-
err = _Py_HashRandomization_Init(core_config);
if (_Py_INIT_FAILED(err)) {
return err;
return err;
}
}
+
+#ifndef MS_WINDOWS
+ _emit_stderr_warning_for_legacy_locale(core_config);
+#endif
+
return _Py_INIT_OK();
}