[fpc-pascal] DoDirSeparators and special filenames on Windows
Tomas Hajny
XHajT03 at hajny.biz
Mon Sep 9 22:28:54 CEST 2013
On Mon, September 9, 2013 18:55, Sven Barth wrote:
> On 09.09.2013 18:31, Jürgen Hestermann wrote:
>>
>> Am 2013-09-08 19:56, schrieb Sven Barth:
>>> On 08.09.2013 10:44, Jürgen Hestermann wrote:
>>>> In my many decades of MS experience I never have seen double path
>>>> delimiters anywhere. How do you generate them? I would not know how
>>>> to do it.
>>> Windows Explorer does not allow them, because it uses the long path
>>> names while on the other hand e.g. PowerShell and Cmd do indeed allow
>>> them.
>>
>> That does not explain how double delimeters creep into paths.
>> Because it seems hard to generate them I can't believe that they
>> commonly exist.
>
> When editing a path inside an edit box I (and I also know others) manage
> here and then to miss a "\" so that the resulting path as duplicate path
> delimiters...
...and the issue is that at least some Windows API functions happily
accept such paths, i.e. programs using such API functions accept them too.
If FPC RTL manages to "translate" a path accepted by Windows (and other
programs not compiled to FPC too) to something which is not accepted by
Windows (API) any longer, then we may consider fixing such "translation".
Tomas
More information about the fpc-pascal
mailing list