Hi all,
ExpandFileName('c:\pp') on windows returns the current directory. Is this 'as designed' or a bug? ('c:\pp' does exist)
Joost

Mailing lists / fpc-devel / 2011-02
6 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi all,
ExpandFileName('c:\pp') on windows returns the current directory. Is this 'as designed' or a bug? ('c:\pp' does exist)
Joost
On Wed, February 16, 2011 17:34, Joost van der Sluis wrote:
Hi Joost,
ExpandFileName('c:\pp') on windows returns the current directory. Is this 'as designed' or a bug? ('c:\pp' does exist)
I've just tried it and cannot reproduce it (2.4.2). I created 'pp' as both directory and a file, and it always returns 'C:\pp' (btw, the same results is returned if c:\pp does not exist which is also OK). I also tried different starting locations but that had no impact either. Did you try with a different version or can you provide more details?
Tomas
ExpandFileName('c:\pp') on windows returns the current directory. Is this 'as designed'…
Hi all, ExpandFileName('c:\pp') on windows returns the current directory. Is this 'as designed' or a bug? ('c:\pp' does exist)
This returns the current directory:
ExpandFileName('')
Mattias
Yes, this is the expected behaviour.
Tomas
I've just tried it and cannot reproduce it (2.4.2). I created 'pp' as both directory and…
I used 2.5.1.
Joost.
Sorry, my fault.
Joost.