Hi!

Michael Kreuzer wrote:

>>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.

Which locale do you use?

On my system, nothing has changed. Maybe because I use a Latin-1 based
locale (which is the default).

> 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.

Well, at least it doesn't seem to break anything. At least not on Linux.
Has anybody tried Windows?

-- 
Michael "Tired" Riepe <[EMAIL PROTECTED]>
X-Tired: Each morning I get up I die a little

-------------------------------------------------------------------------
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