On Thu, Dec 22, 2011 at 11:55 AM, Dan Dennedy <[email protected]> wrote:
> 2011/12/22 Gleb Smirnoff <[email protected]>:
>> On Wed, Dec 21, 2011 at 09:48:32PM -0800, Dan Dennedy wrote:
>> D> Thanks, Gleb. The patch is applied to git now.
>>
>> Thanks, Dan!
>>
>> btw, concerning my bug report:
>>
>> http://sourceforge.net/tracker/?func=detail&atid=613414&aid=3441193&group_id=96039
>>
>> I've found that the mlt framework uses char when obtaining values
>> from xml. Here is attached my ~/.openshot/sequence.mlt which causes
>> crash. Yes, I understand that in 2012 everyone should run UTF-8 on their
>> filesystems, but I still use koi8-r. I think that using 'unsigned char'
>> instead of 'char' throughout mlt_properties.c and mlt_property.c for the
>> property values would fix the problem. However, I didn't tried that.
>>
>> What do you think on this?
>
> I do not think It is not as simple as switching to unsigned char. The
> problem is that something needs to convert from the locale encoding to
> the encoding used in the XML. At that point one can just coerce the
> char* to unsigned char* if needed. But I do not yet know if that is
> done with a libxml2 function or if needs to done prior to that with
> iconv.
>

libxml2 has an encoding API I need to use:
http://xmlsoft.org/tutorial/ar01s09.html
http://xmlsoft.org/html/libxml-encoding.html

And we will need to get the encoding from the locale:
http://linux.die.net/man/3/nl_langinfo

-- 
+-DRD-+

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to