Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Torsten Bonde Christiansen
On 2010-10-11 13:33, ik wrote: Hello List, I'm looking for a proper way to detect the type of Linux distro. At first I thought about /etc/issue, but it seems that some are abusing this file. Many distro's uses /etc/__release, where is their name, but it's not a proper way either to

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Graeme Geldenhuys
On 11 October 2010 13:33, ik ido...@gmail.com wrote: At first I thought about /etc/issue, but it seems that some are abusing this file. Many distro's uses /etc/__release, where is their name, but it's not a proper way either to detect, because not everyone uses it. Any additional

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread silvioprog
2010/10/11 ik ido...@gmail.com Hello List, I'm looking for a proper way to detect the type of Linux distro. At first I thought about /etc/issue, but it seems that some are abusing this file. Many distro's uses /etc/__release, where is their name, but it's not a proper way either

Re: [fpc-pascal] Help getting Lazarus app in Ubuntu to elevate to root and back again

2010-10-11 Thread Andrew Brunner
On Sun, Oct 10, 2010 at 1:09 PM, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: Could you suid it to root or to an appropriate group? I've not tried this for a Pascal/Lazarus program and don't know what the precise rules are for port usage (i.e. whether the user has to be root or

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: file. Many distro's uses /etc/__release, where is their name, but it's not a proper way either to detect, because not everyone uses it. Any additional ideas ? If your distro complies with the LSB standards (most popular

[fpc-pascal] Length bug ?

2010-10-11 Thread Yann Bat
Hi, I think I have found a bug in FPC 2.4.0. Tested under Windows XP 32 bits and Linux 32 bits. program TestLength; begin WriteLn('L =', Length('') ); end. This program gives L = 1 but I think it should give L = 0. Is this really a bug ? Can you reproduce this ? Thanks

Re: [fpc-pascal] Length bug ?

2010-10-11 Thread Michael Van Canneyt
Confirmed on linux. Please enter a bug report for this. Michael. On Mon, 11 Oct 2010, Yann Bat wrote: Hi, I think I have found a bug in FPC 2.4.0. Tested under Windows XP 32 bits and Linux 32 bits. program TestLength; begin WriteLn('L =', Length('') ); end. This program gives L = 1 but

Re: [fpc-pascal] Length bug ?

2010-10-11 Thread Yann Bat
2010/10/11 Michael Van Canneyt mich...@freepascal.org: Please enter a bug report for this. Done. http://mantis.freepascal.org/view.php?id=17604 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Michalis Kamburelis
Marco van de Voort wrote: If your distro complies with the LSB standards (most popular distros do), then you should have a /etc/lsb-release text file that you can parse. FC11, no such file, but there is a dir lsb-release.d with the contents You're not really supposed to be looking at

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread ik
Thanks all for the answers. It's sad to see that there is no specific way to get this information on all distro's but at least I can get it on the most used distros out there. Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org