From 9d2bcf2bd09e7e55fe7d804da27afbe5c2aa71b8 Mon Sep 17 00:00:00 2001 From: Jouni Ahto Date: Mon, 5 Jun 2000 18:47:34 +0000 Subject: [PATCH] - Restore locale settings to state they were at module startup if they were changed. --- ext/standard/basic_functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.50.1