ruby-changes:25649
From: luislavena <ko1@a...>
Date: Sun, 18 Nov 2012 02:53:33 +0900 (JST)
Subject: [ruby-changes:25649] luislavena:r37706 (trunk): Swap logic around wildcard character detection
luislavena 2012-11-18 02:53:21 +0900 (Sun, 18 Nov 2012) New Revision: 37706 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37706 Log: Swap logic around wildcard character detection * win32/file.c (replace_to_long_name): correct logic around wildcard characters detection and ensure wide-chars are used as pattern. [ruby-core:49451] [Bug #7374] Modified files: trunk/ChangeLog trunk/win32/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 37705) +++ ChangeLog (revision 37706) @@ -1,3 +1,9 @@ +Sun Nov 18 02:50:12 2012 Luis Lavena <luislavena@g...> + + * win32/file.c (replace_to_long_name): correct logic around wildcard + characters detection and ensure wide-chars are used as pattern. + [ruby-core:49451] [Bug #7374] + Sun Nov 18 02:02:46 2012 Tadayoshi Funaba <tadf@d...> * complex.c (read_comp): modified handling of polar form. Index: win32/file.c =================================================================== --- win32/file.c (revision 37705) +++ win32/file.c (revision 37706) @@ -277,7 +277,7 @@ } /* skip long name conversion if path contains wildcard characters */ - if (!wcspbrk(pos, "*?")) { + if (wcspbrk(pos, L"*?")) { return size; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/