Hi!

Wolfram Gloger wrote:

>>>I use the default settings of openSuSE 10.2 for german language:
>>>LANG=de_DE.UTF-8
>>
>>Yep... in that case, you actually need no string translation at all.
> 
> 
> Yes!  And I hope the
> QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
> call in this case makes the conversion a no-op.

It should. I still got to test that on Windows before I commit the
change, however.

>>But
>>since Qt interprets C strings as Latin-1 by default, it will perform it
>>anyway.
> 
> 
> I'm not quite sure what you mean -- we are changing the default with
> the above call.

I was going to say that the default codec (which we change with the
call) assumes Latin-1 encoding in C strings.

>  Unless of course (like in your case when you have a
> latin1 locale in the environment) you already have the "right"
> default.  I'm now almost 100% convinced the addition of this call is
> correct as there is an implicit assumption in the dvbcut source that
> we are dealing with locale-specific strings.

Unfortunately, it doesn't solve my problem. :-(

When filenames are latin-1 encoded, they will also be stored in that
format in the project file (which causes an error when the project file
is opened later). I already tried explicit encoding with
codecForLocale()->toUnicode(cstring), but that doesn't work either.

Besides that, I found a Big Bad Bug(tm) in Qt: It only consults LANG to
determine the character set, not LC_CTYPE & friends. The latter are
supposed to override LANG, according to POSIX (it should try LC_ALL,
LC_CTYPE and LANG, in that order, and fall back to the "C" locale only
if none of the variables is set).

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