https://bugs.winehq.org/show_bug.cgi?id=52833
Bug ID: 52833 Summary: Wine's wscript.exe and cscript.exe don't support UTF-16 LE with BOM script files Product: Wine Version: 7.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wscript Assignee: wine-bugs@winehq.org Reporter: devscholar@foxmail.com Distribution: ---
Wine's wscript.exe and cscript.exe don't support UTF-16 LE with BOM script files. Microsoft's does. This feature is used to create Unicode scripts.
https://bugs.winehq.org/show_bug.cgi?id=52833
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEEDINFO
--- Comment #1 from Austin English austinenglish@gmail.com --- Please provide a sample text file/instructions to reproduce the issue.
https://bugs.winehq.org/show_bug.cgi?id=52833
--- Comment #2 from devscholar@foxmail.com --- Created attachment 72226 --> https://bugs.winehq.org/attachment.cgi?id=72226 UTF16 LE encoded script file.
https://bugs.winehq.org/show_bug.cgi?id=52833
--- Comment #3 from devscholar@foxmail.com --- BOM is not necessary. In Windows, you can also create a utf-8 encoded *.wsf file.
https://bugs.winehq.org/show_bug.cgi?id=52833
--- Comment #4 from devscholar@foxmail.com --- Reference:http://fanyi.baidu.com/transpage?query=https://demon.tw/programming/vbs-file...
https://bugs.winehq.org/show_bug.cgi?id=52833
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase Status|NEEDINFO |NEW
--- Comment #5 from Austin English austinenglish@gmail.com --- (In reply to devscholar from comment #2)
Created attachment 72226 [details] UTF16 LE encoded script file.
Confirming.
austin@hyrule:~/Downloads$ wine wscript.exe utf16le.vbs 0118:fixme:vbscript:do_icall L"m" not found 0118:fixme:wscript:ActiveScriptSite_OnScriptError ()
and no msgbox pops up. With an ascii source file, it works: austin@hyrule:~/Downloads$ wine wscript.exe foo.vbs 00f4:fixme:imm:ImeSetActiveContext (0x46a9b8, 1): stub 00f4:fixme:imm:ImmReleaseContext (0001005E, 0046A9B8): stub 0050:fixme:imm:ImeSetActiveContext (0x4aa3a0, 0): stub 0050:fixme:imm:ImmReleaseContext (00010020, 004AA3A0): stub
austin@hyrule:~/Downloads$ cat foo.vbs msgbox("hello")
https://bugs.winehq.org/show_bug.cgi?id=52833
--- Comment #6 from devscholar@foxmail.com --- Thank you for working on it. I also hope to execute UTF-8 encoded scripts, with or without BOM.