https://bugs.documentfoundation.org/show_bug.cgi?id=133789
Bug ID: 133789
Summary: BASIC function DIR does not deliver correct result
list
Product: LibreOffice
Version: 5.4 all versions
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
Using DIR-function with placeholder characters (* or ?) results in a
CASE-SENSITIV file search. E.g. a search-string of 'T*' (capital T) will list a
file named 'Test1.txt' but not the 'file 'test2.txt' (because of lower-case t).
When searching for a file-name without placeholder characters the function
delivers (in case of existence of an appropriate file) the given search-string
but not the real file name: Using the search-string 'TEST4.TXT' results in
'TEST4.TXT' even if the file-name in the system is 'test4.txt'.
The same happens when searching for paths (using 16 as Parm2).
The error occurs when using URL-notation as well as using Windows
path-notation.
Error exists in version 6.3.6.2 and was already existing in the year 2016
(version ?).
Steps to Reproduce:
1. see the attached BASIC-Macro embedded in a CALC-file
2.
3.
Actual Results:
DIR-function produces file-list with missing file-name
Expected Results:
DIR-function should produce file-list independent of upper- / lower-case
characters
Reproducible: Always
User Profile Reset: No
Additional Info:
no restriction regarding upper- / lower-case or case-sensitivity is mentioned
in the DIR-function help-text.
There are some sources mentioning that a placeholder can only be the last
character within a search-string. But this seems to be nonsense, at least the
error occurs even if the placeholder is a last character
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs