[Bug 51503] New: vbscript parser error in expression with # char
https://bugs.winehq.org/show_bug.cgi?id=51503 Bug ID: 51503 Summary: vbscript parser error in expression with # char Product: Wine Version: 6.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs(a)winehq.org Reporter: kulniias(a)gmail.com Distribution: --- wine-staging 6.12 I'm using custom forms in Outlook 2007 with VB scripts inside them. Several forms are not displaying and outlook shows 'error starting expression processing service' warning message. There is some output in console about VB script problems: 0100:fixme:vbscript:parse_next_token Unhandled char # in L"#1/1/4501#) and _\r\n Item.UserProperties(\"\041e\041f\0440\043e\0441\043c\043e\0442\0440\041a\043e\043c\0443\").Value then\r\n\t\tItem.UserProperties(\"\041e\041f\0440\043e\0441\043c\043e\0442\0440\041a\043e\043c\0443\0414\0430\0442\0430\").Value = Date()\r\n\t end if\r"... 0100:fixme:vbscript:parser_error L"#1/1/4501#) and _\r\n Item.UserProperties(\"\041e\041f\0440\043e\0441\043c\043e\0442\0440\041a\043e\043c\0443\").Value then\r\n\t\tItem.UserProperties(\"\041e\041f\0440\043e\0441\043c\043e\0442\0440\041a\043e\043c\0443\0414\0430\0442\0430\").Value = Date()\r\n\t end if\r"...: "syntax error" There is my full expression in script where error occurs: Sub Item_CustomPropertyChange(ByVal Name) if Name="ОПросмотрКому" then if (Item.UserProperties("ОПросмотрКомуДата").Value=#1/1/4501#) and _ Item.UserProperties("ОПросмотрКому").Value then Item.UserProperties("ОПросмотрКомуДата").Value = Date() end if elseif Name="ОПросмотрСекрет" then if (Item.UserProperties("ОПросмотрСекретДата").Value=#1/1/4501#) and _ Item.UserProperties("ОПросмотрСекрет").Value then Item.UserProperties("ОПросмотрСекретДата").Value = Date() end if elseif (Left(Name,3)="Рез") then Call RecountPercent() end if End Sub As I suppose there may be an error while parsing DateTime literal #1/1/4501# or combination of "=#" when there is no space between. Script executes in Windows. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 --- Comment #1 from kulniias(a)gmail.com --- Workaround to adding space between "=" or ")" didn't help. Seems like parser don't understand DateTime literals itself. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 Robert Wilhelm <sloper42(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |sloper42(a)yahoo.com Ever confirmed|0 |1 --- Comment #2 from Robert Wilhelm <sloper42(a)yahoo.com> --- Confirmed, we are completely missing support for date and time literals. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 --- Comment #3 from Robert Wilhelm <sloper42(a)yahoo.com> --- Created attachment 70478 --> https://bugs.winehq.org/attachment.cgi?id=70478 support for date literals Please try this patch. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 Robert Wilhelm <sloper42(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 Robert Wilhelm <sloper42(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Robert Wilhelm <sloper42(a)yahoo.com> --- DateTime literals are now supported after this commit, which will be in wine 6.18: https://source.winehq.org/git/wine.git/commit/bf5f7a7b7bef24f8a0d9c3fa30342e... -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 Gijs Vermeulen <gijsvrm(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bf5f7a7b7bef24f8a0d9c3fa303 | |42e31c9c9c8ca -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #5 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 6.18. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x -- 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.
https://bugs.winehq.org/show_bug.cgi?id=51503 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |--- --- Comment #6 from Michael Stefaniuc <mstefani(a)winehq.org> --- Removing the 6.0.x milestone from bug fixes included in 6.0.3. -- 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