vlc | branch: master | KO Myung-Hun <[email protected]> | Fri Oct 14 22:08:54 2011 +0900| [dbc8ad47443d452c8dd7b5d847cb8955ccc618be] | committer: Rémi Denis-Courmont
Convert '/' to '\' on OS/2 This allows a mixed usage of '\' and '/'. Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dbc8ad47443d452c8dd7b5d847cb8955ccc618be --- src/text/strings.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/text/strings.c b/src/text/strings.c index d5cae97..0e5de0f 100644 --- a/src/text/strings.c +++ b/src/text/strings.c @@ -1075,6 +1075,17 @@ char *make_URI (const char *path, const char *scheme) * scheme name (such as mailto: or news:). */ char *buf; + +#ifdef __OS2__ + char p[strlen (path) + 1]; + + for (buf = p; *path; buf++, path++) + *buf = (*path == '/') ? DIR_SEP_CHAR : *path; + *buf = '\0'; + + path = p; +#endif + #if defined( WIN32 ) || defined( __OS2__ ) /* Drive letter */ if (isalpha ((unsigned char)path[0]) && (path[1] == ':')) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
