ruby-changes:39617
From: nobu <ko1@a...>
Date: Thu, 27 Aug 2015 02:24:49 +0900 (JST)
Subject: [ruby-changes:39617] nobu:r51698 (trunk): win32.c: use backslashes
nobu 2015-08-27 02:24:32 +0900 (Thu, 27 Aug 2015) New Revision: 51698 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51698 Log: win32.c: use backslashes * win32/win32.c (w32_symlink): must use backslashes instead of slashes. Modified files: trunk/win32/win32.c Index: win32/win32.c =================================================================== --- win32/win32.c (revision 51697) +++ win32/win32.c (revision 51698) @@ -4885,6 +4885,7 @@ w32_symlink(UINT cp, const char *src, co https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L4885 wlink = wsrc + len1; MultiByteToWideChar(cp, 0, src, -1, wsrc, len1); MultiByteToWideChar(cp, 0, link, -1, wlink, len2); + translate_wchar(wsrc, L'/', L'\\'); atts = GetFileAttributesW(wsrc); if (atts != -1 && atts & FILE_ATTRIBUTE_DIRECTORY) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/