gowin: test locale workaround
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
parent
25d7e3ae8b
commit
ad00f3fdeb
@ -95,7 +95,11 @@ int main(int argc, char *argv[])
|
||||
// floating point strings whose representation depends on the locale. If
|
||||
// you don't do this, the strings will be in the C locale and later when Qt
|
||||
// starts it won't be able to read them back as numbers.
|
||||
try {
|
||||
std::locale::global(std::locale(""));
|
||||
} catch (const std::runtime_error &e) {
|
||||
// the locale is broken in this system, so leave it as it is
|
||||
}
|
||||
GowinCommandHandler handler(argc, argv);
|
||||
return handler.exec();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user