You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-3536 collation
This commit is contained in:
@ -1092,7 +1092,17 @@ int main(int argc, char** argv)
|
||||
setupSignalHandlers();
|
||||
|
||||
// Set locale language
|
||||
utf8::idb_setlocale();
|
||||
const char* pLoc = setlocale(LC_ALL, "");
|
||||
if (pLoc)
|
||||
{
|
||||
// Log one line
|
||||
cout << "Locale = " << pLoc;
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << "Failed to set locale ";
|
||||
}
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
// Initialize singleton instance of syslogging
|
||||
if (argc > 0)
|
||||
|
@ -19,6 +19,9 @@
|
||||
* $Id: we_server.cpp 4700 2013-07-08 16:43:49Z bpaul $
|
||||
*
|
||||
*******************************************************************************/
|
||||
#include <mariadb.h>
|
||||
#undef set_bits // mariadb.h defines set_bits, which is incompatible with boost
|
||||
#include <my_sys.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
@ -102,7 +105,10 @@ int setupResources()
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
// Set locale language
|
||||
utf8::idb_setlocale();
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
// Initialize the charset library
|
||||
my_init();
|
||||
|
||||
// This is unset due to the way we start it
|
||||
program_invocation_short_name = const_cast<char*>("WriteEngineServ");
|
||||
@ -135,8 +141,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
}
|
||||
}
|
||||
//BUG 2991
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
#ifndef _MSC_VER
|
||||
struct sigaction sa;
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
|
Reference in New Issue
Block a user