Hi!

Ralph Glasstetter wrote:

>>If the documentation is correct, toString() converts the internal (UCS-2
>>or UCS-4 encoded) copy of the string to the current locale. But in the
>>project file, we always want UTF-8 encoding, independent of the locale.
>>Therefore, toString() is wrong, no matter if you're using Linux or Windows.
> 
> That's correct... theoretically... if toString (Rev69) or toCString (Rev70) 
> would work as expected / the same on both OS!

toString() never worked correctly on my Linux system. Nor does
toCString(), but that's another story.

> But using the #ifdef above would solve the problem only  for my UTF-8 
> Linux-Box... and if the locale is changing one couldn't use dvbcut files 
> written with toString anymore.

One could, but the encoding would be wrong.

> Meanwhile I tried/checked all combinations... whereas a project file written 
> under Linux with Rev69 can be used by ANY combination (Windows/Linux, 
> Rev69/70) the project file written with Windows Rev69 cannot be used at all.
> 
> And exactly the opposite is the case for files written with  Rev70... the 
> Windows file can be read under Windows AND Linux (didn't checked reading with 
> Rev69 here because of the XML-incompatibility) but the Linux file is unusable
> because of this already mentioned "double conversion". 

Unfortunately, that's not a helpful test. Whether dvbcut can read its
own project files - even if they were created on another OS - is not an
indicator for correctness, and never will be.

Actually, dvbcut must meet exactly two criteria: First, it must write
correctly encoded project files in all cases. Second, it must be able to
open the project from a correctly encoded project file.

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to