Switch to unified view

a/src/common/rclinit.cpp b/src/common/rclinit.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: rclinit.cpp,v 1.4 2006-01-23 13:32:28 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: rclinit.cpp,v 1.5 2006-03-29 11:18:14 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
 */
19
 */
20
20
21
#include <stdio.h>
21
#include <stdio.h>
22
#include <signal.h>
22
#include <signal.h>
23
#include <locale.h>
23
24
24
#include "debuglog.h"
25
#include "debuglog.h"
25
#include "rclconfig.h"
26
#include "rclconfig.h"
26
#include "rclinit.h"
27
#include "rclinit.h"
27
28
...
...
57
    DebugLog::setfilename(logfilename.c_str());
58
    DebugLog::setfilename(logfilename.c_str());
58
    if (config->getConfParam(string("loglevel"), loglevel)) {
59
    if (config->getConfParam(string("loglevel"), loglevel)) {
59
    int lev = atoi(loglevel.c_str());
60
    int lev = atoi(loglevel.c_str());
60
    DebugLog::getdbl()->setloglevel(lev);
61
    DebugLog::getdbl()->setloglevel(lev);
61
    }
62
    }
62
    
63
64
    // Make sure the locale is set. This is only for converting file names 
65
    // to utf8 for indexation.
66
    setlocale(LC_CTYPE, "");
67
63
    return config;
68
    return config;
64
}
69
}