From: Jouni Ahto Date: Mon, 5 Jun 2000 18:47:34 +0000 (+0000) Subject: - Restore locale settings to state they were at module startup if they X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d2bcf2bd09e7e55fe7d804da27afbe5c2aa71b8;p=php - Restore locale settings to state they were at module startup if they were changed. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index b25f733611..81f6364488 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -719,7 +719,8 @@ PHP_RSHUTDOWN_FUNCTION(basic) /* Check if locale was changed and change it back to the value in startup environment */ if (BG(locale_string) != NULL) { - setlocale(LC_ALL, ""); + setlocale(LC_ALL, "C"); + setlocale(LC_CTYPE, ""); } STR_FREE(BG(locale_string));