[Bug 58398] New: vbscript: For each function with Split a empty string
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(a)winehq.org Reporter: fang.jiali(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58398 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Nikolay Sivov <bunglehead(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58398 Robert Wilhelm <sloper42(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sloper42(a)yahoo.com --- Comment #2 from Robert Wilhelm <sloper42(a)yahoo.com> --- Created attachment 78816 --> http://bugs.winehq.org/attachment.cgi?id=78816 Split(): check for empty string. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58398 Robert Wilhelm <sloper42(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, source -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla