call setlocale before rclconfig init
This commit is contained in:
parent
7a9b75c852
commit
e4aa111d55
1 changed files with 4 additions and 4 deletions
|
@ -47,6 +47,10 @@ RclConfig *recollinit(RclInitFlags flags,
|
||||||
// must check write() return values.
|
// must check write() return values.
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|
||||||
|
// Make sure the locale is set. This is only for converting file names
|
||||||
|
// to utf8 for indexing.
|
||||||
|
setlocale(LC_CTYPE, "");
|
||||||
|
|
||||||
// We would like to block SIGCHLD globally, but we can't because
|
// We would like to block SIGCHLD globally, but we can't because
|
||||||
// QT uses it. Have to block it inside execmd.cpp
|
// QT uses it. Have to block it inside execmd.cpp
|
||||||
|
|
||||||
|
@ -102,10 +106,6 @@ RclConfig *recollinit(RclInitFlags flags,
|
||||||
DebugLog::getdbl()->setloglevel(lev);
|
DebugLog::getdbl()->setloglevel(lev);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the locale is set. This is only for converting file names
|
|
||||||
// to utf8 for indexing.
|
|
||||||
setlocale(LC_CTYPE, "");
|
|
||||||
|
|
||||||
// Make sure the locale charset is initialized (so that multiple
|
// Make sure the locale charset is initialized (so that multiple
|
||||||
// threads don't try to do it at once).
|
// threads don't try to do it at once).
|
||||||
config->getDefCharset();
|
config->getDefCharset();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue