Hi, Juergen Bausa wrote:
> On my system I dont need to close and open again to make this happen. Oh well, now things become really "interesting" (remember the old chinese curse)... Internally, the filenames are stored in a std::string (in native encoding). But when the settings file is written/read, they're converted to/from a QString again. The QString is written to the settings file in UTF-8 encoding, according to the documentation. That is, *independent* of the locale. As long as you don't close dvbcut, however, the std::string is not modified, and it's only converted to a char* and vice versa (which is a 1:1 conversion). Therefore it *should* be possible to open a particular file again during a single session. On my system, the settings file contains correctly encoded names as long as they're latin-1(5) encoded natively. Since that's my default locale, I usually don't encounter this error. But when a filename is UTF-8 encoded, the settings file suddenly contains garbage :( Anybody who has this problem should do the following: move away the current settings file (~/.qt/dvbcut.sf.netrc) create a file named "ÄÖÜäöüß.mpg" (maybe copy from another file) open it with dvbcut close dvbcut make a copy of the settings file start dvbcut again try to open the file from the "recent files" list open the file directly close dvbcut again make another copy of the settings file move back the original settings file After that, please build a .tar.gz containing *both* copies of the settings file and mail it to me, including information about your OS, locale (LANG/LC_*), the file system you used, Qt version and dvbcut version. Maybe the results will shed some more light on this issue. -- 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