mu: use locale_workaround for tables

The tabulate package triggers some locale exception, let's attempt to work
around it.
This commit is contained in:
Dirk-Jan C. Binnema
2022-05-17 22:32:37 +03:00
parent c4cc9795dc
commit a46dab2aad
2 changed files with 7 additions and 0 deletions

View File

@ -406,6 +406,9 @@ cmd_info(const Mu::Store& store, const MuConfig* opts)
{
using namespace tabulate;
if (!locale_workaround())
return Err(Error::Code::User, "failed to find a working locale");
auto colorify = [](Table& table) {
for (auto&& row: table) {