Репозитории ALT
S: | 3.0.1-alt1 |
5.1: | 2.1.1-alt2 |
4.1: | 2.1.0-alt1 |
4.0: | 2.0.5-alt1 |
3.0: | 1.2.10-alt1.1 |
Группа :: Разработка/Прочее
Пакет: kdbg
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: kdbg-2.0.4-default_codec.patch
Скачать
Скачать
diff -Naur kdbg-2.0.4/kdbg/main.cpp kdbg-2.0.4-orig/kdbg/main.cpp
--- kdbg-2.0.4/kdbg/main.cpp 2006-05-27 16:25:56.000000000 +0400
+++ kdbg-2.0.4-orig/kdbg/main.cpp 2006-10-16 07:34:56.000000000 +0400
@@ -30,9 +30,21 @@
#include <stdlib.h> /* getenv(3) */
#include "mydebug.h"
+#include <locale.h>
+#include <qtextcodec.h>
int main(int argc, char** argv)
{
+ ::setlocale(LC_ALL,"");
+ ::setlocale(LC_NUMERIC,"POSIX");
+
+ // Set default codec by current locale
+ QTextCodec *c = QTextCodec::codecForLocale();
+ if (c) {
+ QTextCodec::setCodecForCStrings(c);
+ QTextCodec::setCodecForTr(c);
+ }
+
KAboutData aboutData("kdbg", "KDbg",
VERSION,
I18N_NOOP("A Debugger"),