1 /* coded by Ketmar // Vampire Avalon (psyc://ketmar.no-ip.org/~Ketmar)
3 * This program is free software. It comes without any warranty, to
4 * the extent permitted by applicable law. You can redistribute it
5 * and/or modify it under the terms of the Do What The Fuck You Want
6 * To Public License, Version 2, as published by Sam Hocevar. See
7 * http://sam.zoy.org/wtfpl/COPYING for more details.
14 #include <QApplication>
18 #include <QStringList>
20 #include <QTextStream>
23 ///////////////////////////////////////////////////////////////////////////////
24 static void fixTextCodec () {
26 const char *ll
= getenv("LANG");
28 if (!ll
|| !ll
[0]) ll
= getenv("LC_CTYPE");
29 if (ll
&& ll
[0] && (strcasestr(ll
, "utf-8") || strcasestr(ll
, "utf8"))) return;
30 kc
= QTextCodec::codecForName("koi8-r");
32 QTextCodec::setCodecForCStrings(kc
);
33 QTextCodec::setCodecForLocale(kc
);
37 ///////////////////////////////////////////////////////////////////////////////
38 int main (int argc
, char *argv
[]) {
41 QApplication
app(argc
, argv
);
43 //qDebug() << findDefaultTheme() << getCurrentTheme();
45 SelectWnd
*sw
= new SelectWnd
;