Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-26 Thread Mattias Gaertner via fpc-pascal
h thing as "pure English". He meant ASCII. The encoding is not the problem here. >[...] > function fpgDirectoryExists(const ADirectory: TfpgString): Boolean; > begin > Result := DirectoryExists(fpgToOSEncoding(ADirectory)); > end; If this is SysUtils.Director

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-26 Thread Graeme Geldenhuys
On 26/10/2019 11:24 am, Graeme Geldenhuys wrote: > Do you have a mailing list archive link where the topic originated > from. No worries, I found it. Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-14 Thread Alexey Tor.
>Does SysUtils.DirectoryExists work? No, the dir name is pure English, so DirectoryExistsUTF8 does the same. -- Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] DirectoryExists on FreeBSD 12 problem

2019-11-21 Thread AlexeyT via fpc-pascal
o i wonder, which define freebsd 12 uses??? I cannot google it easily. DirectoryExists reads st_mode item. -- Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] DirectoryExists of FreeBSD 12- Java solution

2019-11-21 Thread AlexeyT via fpc-pascal
https://github.com/jnr/jnr-posix/issues/126 these guys had found the reason of broken Java code on freebsd 12: they now detect ABI version and use different struct on freebsd 12. link shows Github patch to Java "stat" struct. -- Regar

[fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-14 Thread Alexey Tor.
 FPC 3.3.1-r43118 [2019/10/04], on Linux x64, cross compiling to FreeBSD x64 12.0 (TrueOS). Smth is broken in DirectoryExistsUTF8() on FreeBSD. After this FPC update CudaText cannot see that folder (in subdir of home dir, access rights ok) exists. After removing this check in app, app now

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-14 Thread Mattias Gaertner via fpc-pascal
On Mon, 14 Oct 2019 16:07:31 +0300 "Alexey Tor." wrote: >  FPC 3.3.1-r43118 [2019/10/04], on Linux x64, cross compiling to > FreeBSD x64 12.0 (TrueOS). > Smth is broken in DirectoryExistsUTF8() on FreeBSD. Does SysUtils.DirectoryExists work? > After this FPC > u

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-26 Thread Graeme Geldenhuys
On 14/10/2019 3:40 pm, Karoly Balogh (Charlie/SGR) wrote: > The structure in question is in rtl/bsd/ostypes.inc. > > Sadly I know very little about FreeBSD, and I don't have it in any form, > and never had it, so I'd pass on attempting to reproduce and fix this. I'll update

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-25 Thread Graeme Geldenhuys
differently, depending on the platform. So you might need to convert the text to the OS Encoding. eg: fpGUI uses the following, which all fpGUI based applications use, no matter what platform they are on. function fpgDirectoryExists(const ADirectory: TfpgString): Boolean; begin Res

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-26 Thread Graeme Geldenhuys
sh (England) can speak it correctly. ;-) > If this is SysUtils.DirectoryExists, then fpgui suffer from > the same bug. Do you have a mailing list archive link where the topic originated from. In my email client the first message of this thread starts with a quoted line, so I don't have much co

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-14 Thread Karoly Balogh (Charlie/SGR)
Hi Alexey, On Mon, 14 Oct 2019, Alexey Tor. wrote: >  FPC 3.3.1-r43118 [2019/10/04], on Linux x64, cross compiling to > FreeBSD x64 12.0 (TrueOS). > Smth is broken in DirectoryExistsUTF8() on FreeBSD. After this FPC > update CudaText cannot see that folder (in subdir of home dir, acc