Hi!

I guess I caught the bug. "settings" is a global variable, and its
constructor calls load_settings() - before main() has started and Qt has
properly initialized itself (I guess that happens in QApplication
somewhere). Unfortunately, the character translation mechanism isn't
fully initialized at that time either - in particular, the program
thinks it's using the "C" locale (which implies the ASCII character
set). Therefore, filenames in the settings file are incorrectly
converted at load time if the real locale is based on anything else but
ASCII or Latin-1.

Since a global variable is still required for automatic saving (which is
done inside the destructor), the fix is to delay load_settings until Qt
is fully initialized - or until they're needed. Dvbcut does the latter now.

Welcome to r86.

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