Bug 129114 - Starbasic runtime function ChDir(<string>) not working
Summary: Starbasic runtime function ChDir(<string>) not working
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-StarBasic
  Show dependency treegraph
 
Reported: 2019-11-30 15:28 UTC by raal
Modified: 2019-12-01 15:38 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test file (8.96 KB, application/vnd.oasis.opendocument.text)
2019-12-01 15:35 UTC, raal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description raal 2019-11-30 15:28:33 UTC
Description:
it's old issue, see https://bz.apache.org/ooo/show_bug.cgi?id=30692

changing the current working directory with the runtime function ChDir 
in the Basic IDE has no effect on the current directory and is even not really 
inspected by the Interpreter, for example..

Steps to Reproduce:
run macro from attached file

Actual Results:
Current directory: /home/zdenek/Plocha/bibisect/bibisect-41max
Current dir: /home/zdenek/Plocha/bibisect/bibisect-41max

Expected Results:
Current directory: /home/zdenek/Plocha/bibisect/bibisect-41max
Current dir: /tmp/zkouska/aa


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Mike Kaganski 2019-11-30 15:44:52 UTC
(In reply to raal from comment #0)
> Steps to Reproduce:
> run macro from attached file

The attachment seems missing ;-)
Comment 3 Regina Henschel 2019-12-01 14:39:16 UTC
Quoted from https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide/Files_and_Directories_%28Runtime_Library%29

"Some DOS-specific file and directory functions are no longer provided in Apache OpenOffice, or their function is only limited. For example, support for the ChDir, ChDrive and CurDir functions is not provided. Some DOS-specific properties are no longer used in functions that expect file properties as parameters (for example, to differentiate from concealed files and system files). This change became necessary to ensure the greatest possible level of platform independence for Apache OpenOffice."

The bug report for updating the documentation is bug 128784.
Comment 4 raal 2019-12-01 15:35:54 UTC
Created attachment 156222 [details]
test file