1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-27 08:21:15 +03:00

MCOL-3536 collation

This commit is contained in:
David Hall
2020-05-14 16:02:49 -05:00
parent 04fdacb927
commit 1f3d1e6fd6
41 changed files with 667 additions and 797 deletions

View File

@@ -101,10 +101,32 @@ int main(int argc, char** argv)
#ifndef _MSC_VER
setuid(0); // set effective ID to root; ignore return status
#endif
// get and set locale language
string systemLang = "C";
setlocale(LC_ALL, systemLang.c_str());
// Set locale language
const char* pLoc = utf8::idb_setlocale();
try
{
logging::LoggingID lid(17); // ProcessManager
logging::MessageLog ml(lid);
logging::Message msg(1);
logging::Message::Args args;
if (pLoc)
{
// Log one line
args.add("Set locale to ");
args.add(pLoc);
msg.format( args );
}
else
{
args.add("Failed to set locale ");
msg.format( args );
}
ml.logErrorMessage(msg);
}
catch (...)
{
// Ignoring for time being.
}
idbdatafile::IDBPolicy::configIDBPolicy();