mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:43:04 +01:00
This should fix CORE-4639: Linux server may reject connections with a transliteration error.
This commit is contained in:
parent
f5ebc5873b
commit
729ff618b9
@ -103,6 +103,11 @@
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LOCALE_H
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include "../common/classes/semaphore.h"
|
||||
|
||||
const char* TEMP_DIR = "/tmp";
|
||||
@ -333,6 +338,11 @@ int CLIB_ROUTINE main( int argc, char** argv)
|
||||
|
||||
#endif // FB_RAISE_LIMITS
|
||||
|
||||
#ifdef HAVE_LOCALE_H
|
||||
// Pick up the system locale to allow SYSTEM<->UTF8 conversions inside the engine
|
||||
setlocale(LC_CTYPE, "");
|
||||
#endif
|
||||
|
||||
if (!(debug || classic))
|
||||
{
|
||||
int mask = 0; // FD_ZERO(&mask);
|
||||
|
Loading…
Reference in New Issue
Block a user