[vlc-devel] [PATCH 1/2] lua: add a guess_encoding function to convert Latin1 to UTF8

Edward Wang edward.c.wang at compdigitec.com
Tue Aug 27 18:04:05 CEST 2013


On Tue, Aug 27, 2013 at 5:45 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
>
> I only ever challenged the solution, not the problem.
>

As I understand it, you are simply opposed to exposing a new C
function to perform this?

It makes sense to do this in C, as every string in Lua should be UTF8.
This would improve the architecture by sanitizing non-UTF8 strings
from the Lua interface altogether.

Other lua scripts in the future might have to demux non-UTF8 as well,
and this function would be highly useful in those cases too.

Regards,
    Edward Wang



More information about the vlc-devel mailing list