Re: [fpc-devel] RTL and Unicode filenames operations.

2010-03-23 Thread Graeme Geldenhuys
Marco van de Voort het geskryf:
 
 For the same reason why the Unix rtl is not a Windows emulation. We are
 writing a multiplatform compiler and rtl, not an emulation.

If only that was true... I can highlight a few places where Windows
emulation is used rather that pure multi-platform implementation.  :-/



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

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


Re: [fpc-devel] RTL and Unicode filenames operations.

2010-03-23 Thread Michael Van Canneyt



On Tue, 23 Mar 2010, Graeme Geldenhuys wrote:


Marco van de Voort het geskryf:


For the same reason why the Unix rtl is not a Windows emulation. We are
writing a multiplatform compiler and rtl, not an emulation.


If only that was true... I can highlight a few places where Windows
emulation is used rather that pure multi-platform implementation.  :-/


Most cases are out of Delphi/TP compatibility reasons. 
We cannot throw that overboard.


But nothing stops people from developing an alternate RTL, free of
windows-isms, and preferably 100% OOP :-)

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


[fpc-devel] Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
On 03/23/2010 04:01 PM, Paul Ishenin wrote:
 23.03.2010 21:26, Michael Schnell wrote:
 But where id fpc's make install move the correct executable ?
 If no other options are passed then to /usr/local/lib/fpc

 I think that is the problem - you need to replace symlink and to
 change fpc.cfg or to reinstall fpc into /usr/lib
I'll try that

But now I've got another very peculiar problem. I copied the ppc386
executable the fpc make created in the compiler directory to the
directory the /usre/bin/ppc386 symlink points to (before, that file was
older and smaller, supposedly generated by the RPM)

But now I can't rebuild Lazarus and get this error:


masks.pas(29,22) Fatal: Can't find unit Contnrs used by Masks


I have no idea at all what happens at this point.

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


Re: [fpc-devel] Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Jonas Maebe


On 23 Mar 2010, at 16:07, Michael Schnell wrote:


On 03/23/2010 04:01 PM, Paul Ishenin wrote:

23.03.2010 21:26, Michael Schnell wrote:

But where id fpc's make install move the correct executable ?

If no other options are passed then to /usr/local/lib/fpc

I think that is the problem - you need to replace symlink and to
change fpc.cfg or to reinstall fpc into /usr/lib

I'll try that

But now I've got another very peculiar problem. I copied the ppc386
executable the fpc make created in the compiler directory to the
directory the /usre/bin/ppc386 symlink points to (before, that file  
was

older and smaller, supposedly generated by the RPM)

But now I can't rebuild Lazarus and get this error:

masks.pas(29,22) Fatal: Can't find unit Contnrs used by Masks

I have no idea at all what happens at this point.


What happens at this point is that you are mixing two different FPC  
installations. If you want to install in /usr instead of in /usr/ 
local, use make install INSTALL_PREFIX=/usr


If you want to update the symlink afterwards to also change the  
default compiler, change the symlink instead of the file it points to.



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


Re: [fpc-devel] Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
On 03/23/2010 04:16 PM, Jonas Maebe wrote:

 What happens at this point is that you are mixing two different FPC
 installations. If you want to install in /usr instead of in
 /usr/local, use make install INSTALL_PREFIX=/usr

That is what I did assume.
But of course I needed to install FPC 2.4.0 to compile FPC from the svn.

I installed FPC 2.4.0 from the fpc-2.4.0-1.i386.rpm

I did not use the install_prefex option, as I in fact did not know what
I would want as install directory. I'll try your suggesting, hoping not
to destroy this even more.


 If you want to update the symlink afterwards to also change the
 default compiler, change the symlink instead of the file it points to.


Thanks for answering and sorry for accidentally sending this to the
wrong list.

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


Re: [fpc-devel] Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
It did work.

Thanks a lot !

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


[fpc-devel] VAL behavior

2010-03-23 Thread Dariusz Mazur

Hi
  I found different behavior of VAL function under Delphi and FPC

var
  i,io : integer

begin
  val('9 ',ii,io);
  writeln(ii);
  writeln(io);
end;


Delphi set ii to 9, FPC set 0 (io is equal 2)
is this bug?

--
  Darek




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


Re: [fpc-devel] VAL behavior

2010-03-23 Thread Dariusz Mazur

W dniu 2010-03-23 20:04, dmitry boyarintsev pisze:

On Tue, Mar 23, 2010 at 6:50 PM, Dariusz Mazurdar...@emadar.com  wrote:
   

Delphi set ii to 9, FPC set 0 (io is equal 2)
is this bug?
 

Don't assume the value of ii (since it's invalid), if io  0

   


I don't ask about it. Only if this difference is a bug.

--
  Darek




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


Re: [fpc-devel] VAL behavior

2010-03-23 Thread Florian Klaempfl
Dariusz Mazur schrieb:
 W dniu 2010-03-23 20:04, dmitry boyarintsev pisze:
 On Tue, Mar 23, 2010 at 6:50 PM, Dariusz Mazurdar...@emadar.com  wrote:
   
 Delphi set ii to 9, FPC set 0 (io is equal 2)
 is this bug?
  
 Don't assume the value of ii (since it's invalid), if io  0


 
 I don't ask about it. Only if this difference is a bug.
 

No. IMO not.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] VAL behavior

2010-03-23 Thread Tomas Hajny
On Tue, March 23, 2010 21:13, Dariusz Mazur wrote:
 W dniu 2010-03-23 20:04, dmitry boyarintsev pisze:
 On Tue, Mar 23, 2010 at 6:50 PM, Dariusz Mazurdar...@emadar.com
 wrote:

 Delphi set ii to 9, FPC set 0 (io is equal 2)
 is this bug?

 Don't assume the value of ii (since it's invalid), if io  0



 I don't ask about it. Only if this difference is a bug.

FWIW, TP gives the same results as FPC. Nevertheless, as already pointed
out by others, you should not rely on returned values in case of an error.

Tomas


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