[Lazarus] RealPath function

2009-01-06 Thread Roland Turcan
Hello lazarus project! I have been using on Kylix function RealPath which comes from libc, but on freepascal I didn't find the equivalent one. How can I get the symlinkpath in fpc/lazarus. Thanks. -- Best regards, TRoland http://www.rotursoft.sk http://exekutor.rotursoft.sk

Re: [Lazarus] RealPath function

2009-01-06 Thread Vincent Snijders
2009/1/6 Roland Turcan k...@rotursoft.sk: Hello lazarus project! I have been using on Kylix function RealPath which comes from libc, but on freepascal I didn't find the equivalent one. How can I get the symlinkpath in fpc/lazarus. Thanks. I don't know RealPath, but maybe ReadAllLinks is

[Lazarus] File encoding changing silently

2009-01-06 Thread Gabor Boros
Hi, I am fighting with an ansi/unicode/utf8 problem and during this war observed a strange thing for me about file encoding. When a new project created the encoding is CP1250 (from File Setting/Encoding ) for me. Then saved the project the encoding is CP1250 in File Setting/Encoding. But when

Re: [Lazarus] File encoding changing silently

2009-01-06 Thread Mattias Gärtner
Zitat von Gabor Boros gaborbo...@yahoo.com: Hi, I am fighting with an ansi/unicode/utf8 problem and during this war observed a strange thing for me about file encoding. When a new project created the encoding is CP1250 (from File Setting/Encoding ) for me. That's wrong. It should be UTF-8.

Re: [Lazarus] File encoding changing silently

2009-01-06 Thread Gabor Boros
I discovered next things. Created new project and encoding is UTF8. It is good. But set encoding to CP1250 and go into File Settings/Encoding no check appears before any item. But this problem showed only once. Second problem. The files created with UTF8 now. Right. But if set Encoding to

Re: [Lazarus] File encoding changing silently

2009-01-06 Thread Mattias Gärtner
Zitat von Gabor Boros gaborbo...@yahoo.com: I discovered next things. Created new project and encoding is UTF8. It is good. But set encoding to CP1250 and go into File Settings/Encoding no check appears before any item. Are you sure? Is there a menu item with a bracket? But this problem

[Lazarus] Mac/PPC: AUGraphInitialize

2009-01-06 Thread EarMaster - Bent Olsen
Hi all, and a Happy New Year! :-) We have struggled with a problem on few Mac's with PowerPC's the last couple of weeks, because we were unable to reproduce the problem on any available Mac's with PowerPC. The program simply just bounced in the dock and exited with no errors, crash reports,

Re: [Lazarus] File encoding changing silently

2009-01-06 Thread Gabor Boros
Mattias Gärtner írta: Zitat von Gabor Boros gaborbo...@yahoo.com: Are you sure? Is there a menu item with a bracket? No. ;-) Before, I said CP1250 but now I say Ansi(cp1250). When click on Ansi(cp1250) and after go to Encoding again, Ansi(cp1250) and no other encoding selected. BTW, why do

Re: [Lazarus] How can I use TMemDataset

2009-01-06 Thread Joost van der Sluis
Op dinsdag 06-01-2009 om 07:43 uur [tijdzone +0100], schreef Gabor Boros: The result is same with CreateTable and without CreateTable. I've found the problem and fixed it in trunk. It was again a general issue, not only for TMemDataset. Thanks for the help. Joost.

[Lazarus] TFileStream

2009-01-06 Thread Dave Coventry
I've started using TFileStream since posting a query here, but I'd like to know a bit more about it. Is there somewhere that I can find information on how to use it? Specifically, if I load a file into an array as follows: FS:=TFileStream.Create(fname, fmshareDenyWrite);

Re: [Lazarus] TFileStream

2009-01-06 Thread Andrew Brunner
You could c write specific calls to write a byte or segment of contiguous bytes. FS.Seek(128,soFromBegining); FS.WriteBuffer(fsBuffer[128],1); FS.Seek(132,soFromBegining); FS.WriteBuffer(fsBuffer[132],1); On Tue, Jan 6, 2009 at 7:55 PM, Dave Coventry dgcoven...@gmail.com wrote: I've started