Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-15 Thread Paul Breneman
Three minimal FPC and fpGUI distros were just updated on this page: http://www.turbocontrol.com/easyfpgui.htm The serial debug terminal (uses SynaSer part of Synapse) now compiles and the RPi works with my Gearmo USB to serial adapters (that use FTDI chipsets). Should be fun to see what emb

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Jorge Aldo G. de F. Junior
Vinzent, i dont know why you need to check the filename - would fileexists() be enough ? - but i suspect that you already know about that function, so, if you need something more complex, i *feel* that it is something related to security. Supose you wrote a webserver (or whatever thing similar for

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Sven Barth
On 15.09.2012 21:18, Graeme Geldenhuys wrote: On 15/09/12 10:54, Sven Barth wrote: Right... but 255 characters for a filename is already rather much as well when I compare this with the amount of text I can squash into a SMS ;) Now I can't remember exactly, is that 255 characters, or 255 byte

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > Right... but 255 characters for a filename is already rather much as > > well when I compare this with the amount of text I can squash into a SMS ;) > Now I can't remember exactly, is that 255 characters, or 255 bytes? > Because if it is the lat

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Graeme Geldenhuys
On 15/09/12 10:54, Sven Barth wrote: Right... but 255 characters for a filename is already rather much as well when I compare this with the amount of text I can squash into a SMS ;) Now I can't remember exactly, is that 255 characters, or 255 bytes? Because if it is the latter, then the Unico

Re: [fpc-pascal] Windows installer fails to add fpc binaries to PATH

2012-09-15 Thread Andrew Pennebaker
Oh, I just remembered--I had a similar problem with CMake, where for everyone else the installer successfully modified PATH, but not on my machine. I use a lot of command line programs, all installed in different directories, so my PATH was too long for the CMake installer to modify. There was a C

Re: [fpc-pascal] Windows installer fails to add fpc binaries to PATH

2012-09-15 Thread Bart
On 9/14/12, Andrew Pennebaker wrote: > I am using Windows 7 Professional x64. Which version are you using? > My Windows account has full Administrative privileges. I'm curious if the > installer neglects to explicitly request administrative privileges. IIRC UAC asked me for the administrator pa

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Sven Barth
On 15.09.2012 11:34, Vinzent Höfler wrote: On Sat, 15 Sep 2012 11:20:53 +0200, Sven Barth wrote: On 14.09.2012 17:44, Graeme Geldenhuys wrote: On 14/09/12 13:48, Krzysztof wrote: I just quicky googled not allowed characters and wrote this simple function: Also in Windows (as far as I know)

Re: [fpc-pascal] FBAdmin

2012-09-15 Thread patspiper
On 14/09/12 20:07, Ludo Brands wrote: It is already quite a useful component as is. Since you are FBAdmin's author, and are knowledgeable in the service API, what do you recommend regarding the non basic admin actions? Forced Writes in particular is interesting as it might have to be turned off w

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Vinzent Höfler
On Sat, 15 Sep 2012 11:20:53 +0200, Sven Barth wrote: On 14.09.2012 17:44, Graeme Geldenhuys wrote: On 14/09/12 13:48, Krzysztof wrote: I just quicky googled not allowed characters and wrote this simple function: Also in Windows (as far as I know), file names my not be longer than 255 cha

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Sven Barth
On 14.09.2012 17:44, Graeme Geldenhuys wrote: On 14/09/12 13:48, Krzysztof wrote: I just quicky googled not allowed characters and wrote this simple function: Also in Windows (as far as I know), file names my not be longer than 255 characters. So you will have to check the length of AFilename

[fpc-pascal] Re: Windows installer fails to add fpc binaries to PATH

2012-09-15 Thread Reinier Olislagers
On 14-9-2012 23:32, Andrew Pennebaker wrote: > Well, I just checked: > > http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/install/fpc.ist?view=annotate&root=fpcbuild > around line 253 and further. > > It matches my experience. > > Maybe you are using Windows ME or older win