Bug 161405 - ScriptForge's RunApplication does not open files with CJK in the filename.
Summary: ScriptForge's RunApplication does not open files with CJK in the filename.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
24.2.3.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 02:46 UTC by nobu
Modified: 2024-06-05 05:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nobu 2024-06-04 02:46:15 UTC
Description:
ScriptForge's RunApplication functions cannot be opened if the filename contains CJK.

Steps to Reproduce:
1. open new calc and save as "D:\表.ods"
2. execute basic macro

Sub OpenFile_hyou_jp
  GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")
 Dim session As Variant
  session = CreateScriptService("Session")
  session.RunApplication("D:\表.ods")
End Sub

Actual Results:
3. Error
The following script will also fail.
  session.RunApplication(ConvertToURL("D:\表.ods"))

Expected Results:
3. Open "D:\表.ods".


Reproducible: Always


User Profile Reset: No

Additional Info:
The script below works.
Sub OpenFile_hyou_jp_Shell
  Shell("soffice.exe", 1, "D:\表.ods")
End Sub

Reproducible with
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f4ef5435df5560e6b6b061ce4053c71e2819bf51
CPU threads: 4; OS: Windows 10.0 Build 10240; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded
Comment 1 Werner Tietz 2024-06-05 05:37:48 UTC
Reproducible with:
```
Version: 24.2.3.2 (AARCH64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: en-US
Flatpak
Calc: threaded
```

but NOT with:
```
Version: 7.4.7.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Debian package version: 4:7.4.7-1+deb12u2
Calc: threaded
```
btw.
!!It's best not to use ‘ScriptForge’ at all!!