http://bugs.winehq.org/show_bug.cgi?id=58398
Bug ID: 58398 Summary: vbscript: For each function with Split a empty string Product: Wine Version: 10.10 Hardware: x86-64 OS: Windows Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: fang.jiali@vico-lab.com
When I use following script, the behavior is different with MS's.
-----------------------------------------
Dim arrText arrText = ""
Dim value For Each value In Split(arrText, ",") msgbox value Next
-----------------------------------------
if we use wine's script engine, it will show a popop message. if we use MS's script engine, it will NOT show a popop message.
http://bugs.winehq.org/show_bug.cgi?id=58398
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- I think it must be a bug in Split(), it returns 1 element array, ubound=lbound=0 but it should return 0 elements with lbound=0 and ubound=-1.
http://bugs.winehq.org/show_bug.cgi?id=58398
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sloper42@yahoo.com
--- Comment #2 from Robert Wilhelm sloper42@yahoo.com --- Created attachment 78816 --> http://bugs.winehq.org/attachment.cgi?id=78816 Split(): check for empty string.
http://bugs.winehq.org/show_bug.cgi?id=58398
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, source