Hi,

> Maybe adding
>
> QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());

that's the trick. Now the implicit conversion from unicode (QString) to ascii 
(std::string) and back is working fine. No manualy encoding/decoding is 
necessary. So you can forget my previous patch. Attached is a new patch 
adding only this line to main. I think this patch should be applied to the 
svn so that the implicit string conversion from QString to std::string and 
back is conform to the local settings.

Regards,
        Michael

--- ./src/main.cpp	2007-07-29 00:03:50.000000000 +0200
+++ ./src/main.cpp	2007-09-05 02:25:58.000000000 +0200
@@ -35,6 +35,7 @@
 }
 #include <qimage.h>
 #include <qsettings.h>
+#include <qtextcodec.h>
 #include "dvbcut.h"
 #include "mpgfile.h"
 #include "index.h"
@@ -126,6 +127,7 @@
   }
 
   QApplication a(argc, argv);
+ QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
 
 #ifdef HAVE_LIB_AO
   ao_initialize();
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to