Commit dbc8ad47 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rémi Denis-Courmont

Convert '/' to '\' on OS/2

This allows a mixed usage of '\' and '/'.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 9ab620e7
......@@ -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] == ':'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment