]> Dogcows Code - chaz/openbox/blob - src/main.cc
use the UTF-8 codeset
[chaz/openbox] / src / main.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2
3 /*! @file main.cc
4 @brief Main entry point for the application
5 */
6
7 #ifdef HAVE_CONFIG_H
8 # include "../config.h"
9 #endif // HAVE_CONFIG_H
10
11 extern "C" {
12 #ifdef HAVE_LOCALE_H
13 # include <locale.h>
14 #endif // HAVE_LOCALE_H
15
16 #include "gettext.h"
17 }
18
19 #include "openbox.hh"
20
21 int main(int argc, char **argv) {
22 // initialize the locale
23 setlocale(LC_ALL, "");
24 bindtextdomain(PACKAGE, LOCALEDIR);
25 bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
26 textdomain(PACKAGE);
27
28 ob::Openbox openbox(argc, argv);
29 openbox.eventLoop();
30 }
This page took 0.042451 seconds and 5 git commands to generate.