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@winehq.org Reporter: kulniias@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.
https://bugs.winehq.org/show_bug.cgi?id=51503
--- Comment #1 from kulniias@gmail.com --- Workaround to adding space between "=" or ")" didn't help. Seems like parser don't understand DateTime literals itself.
https://bugs.winehq.org/show_bug.cgi?id=51503
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |sloper42@yahoo.com Ever confirmed|0 |1
--- Comment #2 from Robert Wilhelm sloper42@yahoo.com --- Confirmed, we are completely missing support for date and time literals.
https://bugs.winehq.org/show_bug.cgi?id=51503
--- Comment #3 from Robert Wilhelm sloper42@yahoo.com --- Created attachment 70478 --> https://bugs.winehq.org/attachment.cgi?id=70478 support for date literals
Please try this patch.
https://bugs.winehq.org/show_bug.cgi?id=51503
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=51503
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Robert Wilhelm sloper42@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...
https://bugs.winehq.org/show_bug.cgi?id=51503
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |bf5f7a7b7bef24f8a0d9c3fa303 | |42e31c9c9c8ca
https://bugs.winehq.org/show_bug.cgi?id=51503
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.18.
https://bugs.winehq.org/show_bug.cgi?id=51503
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=51503
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #6 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.3.