Michael Van Canneyt  wrote / napĂ­sal(a):
On Tue, 29 Jul 2008, Ales Katona wrote:

It seems that currently, GetAppConfigDir performs rather incosistently.

On Unix, it returns path with trailing pathdelim, on windows it returns path
with random trailing path delim (depends on which branch, see code).

What should it be then?

Considering the importance of this function to programs, it's changes along
versions (e.g: 2.2.0 vs 2.2.2 vs soon-to-be-trunk) I think we need to document
the behaviors per-version so people can decide if it's even viable to use atm.
(I got burned).

So.. questions are:
1. trailing pathdelims, yes or no? (of course only if there's something to
return)

What is the most logical according to you ?

I think the pathdelim should be there so people can simply add name of their file to it. That's how it currently works in unix, and I think it's the most logical solution. Loesje said he'll look into it but I can help, after someone confirms which way to go :)

2. can I  update the doc with per-version peculiarities info?

I'll take care of this.

Thanks

Michael. _______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to