diff --git a/checkin_notes b/checkin_notes index ea10f5c8e8..f71100bdc9 100755 --- a/checkin_notes +++ b/checkin_notes @@ -4200,3 +4200,9 @@ Rom 25 Apr 2006 html/user/ forum_thread.php + +Walt 25 Apr 2006 + - Bug Fix: Save local copy of locale so it gets restored properly later. + + lib/ + gui_rpc_client.h diff --git a/lib/gui_rpc_client.h b/lib/gui_rpc_client.h index 3ddd360f0e..1668f5bd95 100644 --- a/lib/gui_rpc_client.h +++ b/lib/gui_rpc_client.h @@ -617,12 +617,12 @@ struct RPC { }; struct SET_LOCALE { - char* locale; + std::string locale; inline SET_LOCALE() { locale = setlocale(LC_ALL, NULL); setlocale(LC_ALL, "C"); } inline ~SET_LOCALE() { - setlocale(LC_ALL, locale); + setlocale(LC_ALL, locale.c_str()); } };