[vlc-devel] [PATCH] Symbian App Private Path and associated build system changes

Jean-Baptiste Kempf jb at videolan.org
Sun Jan 9 20:51:25 CET 2011


On Sun, Jan 09, 2011 at 11:57:46PM +0530, Pankaj yadav wrote :
> +char * GetConstPrivatePath()
> +{
> +    TFileName privatePath;
> +
> +    if(GetPrivatePath(privatePath)!=KErrNone)
> +    {
> +        goto defaultreturn;
> +    }
> +
> +    ret = wcstombs(carray, (const wchar_t *)privatePath.PtrZ(), KMaxFileName );
> +
> +    if(ret!=0)
> +    {
> +        if((len = strnlen((const char *)carray, KMaxFileName) < KMaxFileName)
> +        {
> +            carray[len-1]='\0';
> +        }
> +        else
> +        {
> +            goto defaultreturn;
> +        }
> +    }
> +    else
> +    {
> +        goto defaultreturn;
> +    }
> +
> +    return strdup((const char *)carray);

You should use CnvUtfConverter::ConvertFromUnicodeToUtf8l( privatePath )

Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/
+33 672 704 734



More information about the vlc-devel mailing list