PR libstdc++/78552 only construct std::locale for C locale once
authorJonathan Wakely <jwakely@redhat.com>
Wed, 9 Oct 2019 12:55:39 +0000 (13:55 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 9 Oct 2019 12:55:39 +0000 (13:55 +0100)
commit531b0a3172ed423175d7ebbf317cd79f4613735e
treeea115aff2c93ab9bcdb6630379d3bde014953159
parent6bbead0c5afef2752cd6a6b55208d738f65c95a6
PR libstdc++/78552 only construct std::locale for C locale once

PR libstdc++/78552
* src/c++98/locale_init.cc (locale::classic()): Do not construct a new
locale object for every call.
(locale::_S_initialize_once()): Construct C locale here.

From-SVN: r276758
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++98/locale_init.cc