From 9f2dba4ff295fa4c10e8afff2b00b177b79a8b05 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 22 May 2007 10:54:56 +0000 Subject: [PATCH] Set UTF-8 codec in bat for char * -> UTF-16 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4874 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/fileset/fileset.cpp | 2 +- bacula/src/qt-console/main.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/qt-console/fileset/fileset.cpp b/bacula/src/qt-console/fileset/fileset.cpp index ded84d15d6..905322e8b2 100644 --- a/bacula/src/qt-console/fileset/fileset.cpp +++ b/bacula/src/qt-console/fileset/fileset.cpp @@ -73,7 +73,7 @@ void FileSet::populateTree() mp_treeWidget->clear(); m_checkcurwidget = true; - QStringList headerlist = (QStringList() << "FileSet Name" << "FileSet Id" + QStringList headerlist = (QStringList() << " FileSet Name " << "FileSet Id" << "Create Time"); topItem = new QTreeWidgetItem(mp_treeWidget); diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index bebafdaa0e..f6cb2bf547 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -60,6 +60,7 @@ int main(int argc, char *argv[]) app = new QApplication(argc, argv); app->setQuitOnLastWindowClosed(true); + QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); #ifdef ENABLE_NLS -- 2.39.5