Skip to content

Commit 1fb58f8

Browse files
committed
More searching for locale("en_US") hang.
1 parent 0139d40 commit 1fb58f8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/cli/clitest.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,10 +2401,6 @@ istream & operator>>(istream & is, EnumAB & val) {
24012401
return is;
24022402
}
24032403

2404-
#ifdef TEST_EXPLICIT_IMBUE
2405-
static locale s_loc("en_US");
2406-
#endif
2407-
24082404
//===========================================================================
24092405
void unitsTests() {
24102406
int line = 0;
@@ -2486,6 +2482,9 @@ Units symbol 'k' not recognized.
24862482
EXPECT(*sv == "1000000");
24872483

24882484
auto & si = cli.opt<int>("i").siUnits();
2485+
#ifdef TEST_EXPLICIT_IMBUE
2486+
static locale s_loc("en_US");
2487+
#endif
24892488
#if defined(TEST_EXPLICIT_IMBUE)
24902489
si.imbue(s_loc);
24912490
#endif
@@ -2526,6 +2525,9 @@ Usage: test [OPTIONS] [V...]
25262525
{
25272526
cli = {};
25282527
auto & sht = cli.opt<uint16_t>("s").timeUnits();
2528+
#ifdef TEST_EXPLICIT_IMBUE
2529+
static locale s_loc("en_US");
2530+
#endif
25292531
#if defined(TEST_EXPLICIT_IMBUE)
25302532
sht.imbue(s_loc);
25312533
#endif

0 commit comments

Comments
 (0)