mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-13 16:09:04 +08:00
stringrenderer_test: Get system locale only once
This fixes a runtime exception on macOS. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
26c294940d
commit
4763f24cbb
@ -50,8 +50,9 @@ using tesseract::StringRenderer;
|
||||
|
||||
class StringRendererTest : public ::testing::Test {
|
||||
protected:
|
||||
void SetUp() {
|
||||
std::locale::global(std::locale(""));
|
||||
void SetUp() override {
|
||||
static std::locale system_locale("");
|
||||
std::locale::global(system_locale);
|
||||
}
|
||||
|
||||
static void SetUpTestCase() {
|
||||
|
Loading…
Reference in New Issue
Block a user