From b47ff5fc7dfa5696fabb5b6271c8db76d8dd77e8 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh@chollian.net>
Date: Fri, 14 Oct 2011 22:08:54 +0900
Subject: [PATCH 07/26] Convert '/' to '\' on OS/2

This allows a mixed usage of '\' and '/'.
---
 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] == ':'))
-- 
1.7.3.2

