[vlc-devel] commit: Use [[   ]] delimiter for string in order to prevent interpreting \ as an escape character . This should help fix lua related issues on windows. (Antoine Cellerier )

git version control git at videolan.org
Tue Jan 5 00:11:20 CET 2010


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Jan  5 00:10:43 2010 +0100| [80303c27c6d6b1fd9899a158ebd798c4d8ae17bc] | committer: Antoine Cellerier 

Use [[ ]] delimiter for string in order to prevent interpreting \ as an escape character. This should help fix lua related issues on windows.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80303c27c6d6b1fd9899a158ebd798c4d8ae17bc
---

 modules/misc/lua/intf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/lua/intf.c b/modules/misc/lua/intf.c
index 2dedafd..3074355 100644
--- a/modules/misc/lua/intf.c
+++ b/modules/misc/lua/intf.c
@@ -244,7 +244,7 @@ int Open_LuaIntf( vlc_object_t *p_this )
     *psz_char = '\0';
     /* FIXME: don't use luaL_dostring */
     if( asprintf( &psz_command,
-                  "package.path = \"%s"DIR_SEP"modules"DIR_SEP"?.lua;\"..package.path",
+                  "package.path = [[%s"DIR_SEP"modules"DIR_SEP"?.lua;]]..package.path",
                   p_sys->psz_filename ) < 0 )
     {
         free( p_sys->psz_filename );




More information about the vlc-devel mailing list