blob: a1b466ed2f8b6352d11c9521cfcd27cda3bfc244 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#include <cstring>
#include <errno.h>
#include <iostream>
#include "config.h"
#include "exception.h"
#include "pbcontroller.h"
#include "pbview.h"
#include "utils.h"
extern "C" {
void rs_setup_human_panic(void);
}
using namespace podboat;
int main(int argc, char* argv[])
{
rs_setup_human_panic();
utils::initialize_ssl_implementation();
setlocale(LC_CTYPE, "");
setlocale(LC_MESSAGES, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
PbController c;
int ret;
try {
podboat::PbView v(&c);
c.set_view(&v);
ret = c.run(argc, argv);
} catch (const newsboat::Exception& e) {
std::cerr << strprintf::fmt(_("Caught newsboat::Exception with "
"message: %s"),
e.what())
<< std::endl;
::exit(EXIT_FAILURE);
}
return ret;
}
|