Switch to unified view

a/src/common/rclinit.cpp b/src/common/rclinit.cpp
...
...
45
45
46
    // We ignore SIGPIPE always. All pieces of code which can write to a pipe
46
    // We ignore SIGPIPE always. All pieces of code which can write to a pipe
47
    // must check write() return values.
47
    // must check write() return values.
48
    signal(SIGPIPE, SIG_IGN);
48
    signal(SIGPIPE, SIG_IGN);
49
    
49
    
50
    // Make sure the locale is set. This is only for converting file names 
51
    // to utf8 for indexing.
52
    setlocale(LC_CTYPE, "");
53
50
    // We would like to block SIGCHLD globally, but we can't because
54
    // We would like to block SIGCHLD globally, but we can't because
51
    // QT uses it. Have to block it inside execmd.cpp
55
    // QT uses it. Have to block it inside execmd.cpp
52
56
53
    // Install signal handler
57
    // Install signal handler
54
    if (sigcleanup) {
58
    if (sigcleanup) {
...
...
100
    if (!loglevel.empty()) {
104
    if (!loglevel.empty()) {
101
    int lev = atoi(loglevel.c_str());
105
    int lev = atoi(loglevel.c_str());
102
    DebugLog::getdbl()->setloglevel(lev);
106
    DebugLog::getdbl()->setloglevel(lev);
103
    }
107
    }
104
108
105
    // Make sure the locale is set. This is only for converting file names 
106
    // to utf8 for indexing.
107
    setlocale(LC_CTYPE, "");
108
109
    // Make sure the locale charset is initialized (so that multiple
109
    // Make sure the locale charset is initialized (so that multiple
110
    // threads don't try to do it at once).
110
    // threads don't try to do it at once).
111
    config->getDefCharset();
111
    config->getDefCharset();
112
112
113
    // Init unac locking
113
    // Init unac locking