Hi,
I would like to express my wish for a new 2.0.x release too. :-)
We have also (minor) Problems (Dataset / Timestamp problems) with 2.0.2 and we
would need a new "stable" release for a new stable
ZEOS Database Tools Release for Lazarus FPC.
(ZEOS works currently rather stabl
fset:=1-frac(now)-5/86400;
while not(keypressed) do
begin
writeln(DateTimeToStr(now+timeroffset)); (* Write the time by adding some
offset-seconds*)
end;
end.
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal
Hi
I wrote two programs one in C and one in Freepascal.
The program read a variable of a library and write it to stdout. I will put it
into a file: ("#: ./dataprog > file.dat").
I use "printf" in the C and "writeln" in Freepascal.
The problem: The fpc-base
) I think, FreePascal produce fast programs. I look in fpc options an found:
-O optimizations:
-OGgenerate faster code (default)
I use this default option. I use on gcc no specific optimizations.
3.)The version is "Free Pascal Compiler versi
Hi Jonas,
>> I know, programs with a writeln() have lower performance, but I think,
>> printf() and writeln() must do the same. This need time to calculate.
>> But the difference between printf() and writeln() are so, that the fpc
>> program breaks with errors
C source:
for (i=0;ihttp://lists.freepascal.org/mailman/listinfo/fpc-pascal
Mailing List:
fpc-pascal@lists.freepascal.org
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
LG> yes, but... with other large TCP/IP libraries you MUST use threads...
LG> with synapse you CAN use threads. This is mojor difference! One day
LG> will be finished thread support in FPC and all will be happy. ;-)
Why must I use threads?
Following works perfectly for me for many year
; sockets with blocking code using threads. This gives you a clear seperation
ME> between your tcp/ip mechanism and your application code. This is the route
ME> we usually take here.
ME> Swings and roundabouts, I know ;-)
ME> Matt
ME> ___
The message contains Unicode characters and has been sent as a binary attachment.
<>
On 6/22/21 9:05 AM, Michael Van Canneyt via fpc-pascal wrote:
Hello All,
The Free Pascal and Lazarus teams are in the process of switching to
Gitlab to manage their source code and issue reports.
In order to lower maintenance of their own infrastructure, a hosted
solution
has been chosen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
After quite a long time of absence from FPC, I decided to pick it
up again.
One of the first things I stumbled upon was the absence of
ResourceStringTableCount, GetResourceStringHash and related
functions.
Is there somewhere a list that tells
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello Jonas,
Today, Mar 30, Jonas Maebe wrote to FPC-Pascal users discussions about Re:...:
Thanks to you and Michael for the speedy reply.
JM > > One of the first things I stumbled upon was the absence of
JM > > ResourceStri
beginning:
{
Compiler options
}
{$mode ObjFPC}
{$M 8192,0,655360}
{$I-,H+}
{$IFDEF Testing}
{$D+,L+,R+}
{$ELSE}
{$D-,L-,R-}
{$ENDIF}
And in my compile batch I have:
fpc -vw -Fi~/amc/src -FE../bin -Fu~/pascal/units -FU./ amc
When I try to copileis tells me:
Copyright (c) 199
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello Jonas,
Friday, Apr 23, Jonas Maebe wrote to FPC-Pascal users discussions about Re:...:
JM > > I'm still stuck. Who can tell me what's wrong?
JM > Without a self-contained compilable example that demonstrates the problem:
J
,
Koenraad.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
fficial document from Delphi here:
> http://docwiki.embarcadero.com/RADStudio/Berlin/en/Parameters_(Delphi)
> which I think a bit more clear.
Their wiki content is actually user contributed, no better than Lazarus/FPC
wiki. It sometimes feels easier to read because it's written from user P
ontext:
http://free-pascal-general.1045716.n5.nabble.com/Partial-text-search-in-a-dictionary-tp5728562p5728601.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______
fpc-pascal maillist - fpc-pascal@lists.freepa
iew this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Browser-and-exe-tp5728798p5728804.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.
bble.com.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> I do not understand what -iVSPTPSOTO is...
That's what happened when the compiler cannot be called by make. Watch:
> make: -iVSPTPSOTO: Command not found
it's a parameter list for fpc to get (from fpc -h):
-i Information
...
-iSO Return compiler OS
-
For debugging reasons I have installed fpc 2.6.4 on Debian so I can
compile some old SVN revisions, number 32959 for example.
I want to use the fp editor to run the test, but it seems as the
"systemic" 2.6.4 is being used for compiling instead of the SVN version.
The bug doesn
I meant to say that system fpc is put AFTER the SVN fpc in the path.
On 08/16/2017 09:09 PM, kapibara wrote:
PATH=home/roger/fpc/fpc_svn/bin:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin:/usr/bin:/bin
export
PATH=home/roger/fpc/fpc_svn/bin:/home/roger/fpc/fpc_svn/compiler:/usr/local/bin
Ah, so FP has no versions other than the official releases then? (2.6.0,
2.6.2, 2.6.4 and so on)
Why doesn't FP use the same compiler revision as the SVN sources it
comes with? Because the fp executable is compiled at the same time as fpc?
Alright then, I'll try instead:
fpc test
You're right, now I fixed that and "which fpc" reports the SVN version!
On 08/16/2017 10:15 PM, Tomas Hajny wrote:
On Wed, August 16, 2017 21:15, kapibara via fpc-pascal wrote:
I meant to say that system fpc is put AFTER the SVN fpc in the path.
Due to the missing slash at t
The old SVN version is now in play, so far so good! But then "Can't find
unit system" happened:
roger@bikupan:~/fpc/fptest_working$ fpc fptest.pas
Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: L
To be sure fpc.cfg is found I started the compilation from fpc's bin
directory where the fpc.cfg is located.
roger@bikupan:~/fpc/fpc_svn/
bin$ ./fpc /home/roger/fpc/fptest_working/fptest.pas
Free Pascal Compiler version 3.1.1 [2017/08/16] for x86_64
Copyright (c) 1993-2015 by Florian Kla
Alright, its compiling! It was wrong path in fpc.cfg. The DEB
installation creates a directory structure under the fpc directory that
matches this:
/lib/fpc/3.1.1/units/$fpctarget
Thanks again!
On 08/16/2017 11:22 PM, Tomas Hajny wrote:
On Wed, August 16, 2017 23:08, kapibara via fpc
has some interest here:
"Kattis" (open.kattis.com) is a site where students can make
programming exercises. This is quite important IMHO; companies look at
Kattis results when recruiting.
_______
fpc-pascal maillist - fpc-pascal@lists.free
> fpreport has been committed to FPC SVN: packages/fcl-report.
> It should compile on windows, linux, freebsd and darwin.
From the wiki:
"An important use-case was a Linux server running in a container without X
libraries installed"
Yep, yep, yep. Finally I can replace m
the implementation is?
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
late/generic C++
class that implements a dynamic array functionality, but it can't be used
outside C++.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.fre
> Would it be possible to do this via a Lua shim?
How is it even related with that?
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-
> I thought FPC had the ability to execute a fragment of Lua, and Lua I
believe can call C++ directly.
No, Lua can only call C, just like FPC. You do know the problem of C++
interfacing, don't you?
--
Sent from: http://free-pascal-general.1045716.n5.na
er directory (please checkout r37430 at least), I only svn
diff there, not in the top level directory (I have modifications to certain
packages).
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.fr
.1045716.n5.nabble.com/ERESTAPI-TBuckets-unsupported-array-element-type-lt-looks-like-empty-string-gt-td5726387.html
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.
com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> or even neural network libraries written in Pascal?
Try contacting schuler in Lazarus forum.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.
> Hi, a newbie question but the docs aren't clear on how to say that I
want to use the 64-bit compiler, not the i386
fpc -Px86_64 -Twin64
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fp
> is there something simliar to Java's java.io.File or java.nio.Path for
FPC? Google makes me think there isn't...
No, there isn't. Welcome to hybrid paradigm programming language. It's not
difficult to make an OO wrapper for File* SysUtils functions or even the
clas
> When I'm in doubt
about the conditional defines, I either google or take advantage of
Lazarus: in project->options I select the target CPU family and the
target processor, and then I use "show all options" to see which defines
are set.
fpc -vc is your friend here.
AndInitialize before 'main' without additional user actions?
___________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> Why?
At least pointer size takes double space, multiply it with every instances
1.5x bigger is not impossible.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
h
27;t break anything lately):
https://code.google.com/archive/p/lysee/
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> Is there a complete list of packages available somewhere?
$ svn co https://svn.freepascal.org/svn/fpc/trunk fpc
$ cd fpc/packages
$ ls
tadaaa...
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist -
ssing or your server dies (500).
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
mapping elements of
the array according to a map function. The map function takes a single
parameter of the type of the array items and returns the mapped value.
· Peek() : returns the last item.
· Pop() : returns the last item and removes it from the array.
· Remove([startI
e this high level functionality as well. Using the Pas2JS approach
with external classes interfaces it looks so powerful :)
<http://free-pascal-general.1045716.n5.nabble.com/file/t339674/codeinsight.png>
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/______
rnal name 'JSON';implementationend.
and use like this: JSON.stringify( JsonObject );
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> Never mind I have it figured out. You have to add the path to
> the /etc/fpc.cfg file, such as:
You can do it from command line, too. In fact, if you already have it
working from Lazarus, simply open Project Options->Show Options->Command
Line Parameters tab, copy the content
l.1045716.n5.nabble.com/
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
bble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
How can this code
{$scopedenums on}
type
Bar = set of (A, B, C);
refer to A, B, C?
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
der could they make such code to not compile at all...
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> Create a call that calls Application.Terminate.
I just call DumpHeap(false); instead
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-
ust make it global) and on start of each procedure, you check whether
the current procedure is in the map already or not. If yes, then the current
call stack has formed a recursion.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
: http://free-pascal-general.1045716.n5.nabble.com/
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
נשלח מסמארטפון ה-Samsung Galaxy שלי.
הודעה מקורית מאת: Joost van der Sluis
תאריך:27/05/2018 20:07 (GMT+02:00) אל:
fpc-pascal@lists.freepascal.org נושא: Re: [fpc-pascal] Free e-book:
Free Pascal from Square One
Op 27-05-18 om 18:18 schreef Jonas Maebe:
> See h
http://free-pascal-general.1045716.n5.nabble.com/
___________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> Is there a basic linked List object for Lazarus?
https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/src/glinkedlist.pp
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pas
rom: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
ring length with O(1) length retrieval.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> Is it possible to use FPC for linking only?
I've asked this in the past with straight "no" answer.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
_______
fpc-pascal maillist - fpc-pascal@lists.f
> https://github.com/daar/GLPT
This is more GLFW rather than GLUT. Good, I prefer it this way as I have
much greater control with regards to the event handling.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maill
this would be used, though.
Despite being idiomatic in many languages, it doesn't really save much
typing that traditional way (if that's the main purpose).
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
_______
fpc-pasca
> acording example I found in FPC examples directory,
Check the one here instead:
$(fpcsrcdir)/packages/fcl-fpcunit/src/demo/consolerunner/testrunner.pp
It depends only on FPC units. I guess you're looking at examples from
Lazarus directory instead of FPC.
--
Sent from: http://fre
rnal 'CutilInit';
implementation
end.
the a CommonTest.pp file:
Program commonTest;
uses
Common;
begin
writeln('got here');
CutilInit();
end.
fpc.exe -TWin32 -Mdelphi -vw -Sg -Ci -O1 -Cp386 -XS -gl -p- -b-
is the relevant way I'm invoking fpc
It links, b
a pascal program on a
windows machine
thanks
john
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
H%
@set BASE=%cd%
%CC% -g -I%BASE% -DGNU_WIN32 -O1 -Wunused-variable -c ccode.c -o ccode.o
fpc -MDelphi -MDelphi -vw -Sg -Ci -O1 -Cp386 -OpPENTIUM3 -Ratt ^
-Fu%FPC_BASE%\units\i386-Win32 ^
-Fu%FPC_BASE%\units\i386-Win32\* ^
-Fu%FPC_BASE%\units\i386-Win32\rtl ^
-FlC:\VCAST63\MinGW\lib ^
pcode.pas
@set
sven,
so I just tried, what I think you said:
procedure HelloC; cdecl; external name 'HelloC';
pcode.pas(19,1) Error: Undefined symbol: _HelloC
sorry for complaining about windows, but i feel like this is more difficult
on windows.
All of the FPC examples, seem to run without
THANKS GUYS.
This is now working. The 'fix' was to actually install fpc 3.0.4 on this
machine.
My trusty 2.4.4 still compiled just fine what I use it for here at my day
job.
But it seems 2.4.4 was not really pulling in the static reference.
{ $L ccode.o }
So for anyone else searchi
C type calling conventions."
so I'm going to stick with cdecl and for now it's working and will be more
compatible when I also use this code on MacOs
cheers
john
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
How do I remove all of FPC 2.6.4 from macOS (11.6.4) so that I can install the
newest version? Is everything in /usr/local/bin/ppc386 (see below)?
$ fpc
Free Pascal Compiler version 2.6.4 [2014/02/26] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
/usr/local/bin/ppc386 [options
> On Feb 13, 2019, at 10:44 AM, Jonas Maebe wrote:
>
> On 13/02/19 10:55, list_email--- via fpc-pascal wrote:
>> How do I remove all of FPC 2.6.4 from macOS (11.6.4) so that I can install
>> the newest version? Is everything in /usr/local/bin/ppc386 (see below)?
&g
n5.nabble.com/
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
x27;+PPUFn);
utils/ppufiles.pp: Error('Error: Wrong PPU Version : '+PPUFn,false);
utils/ppumove.pp: Error('Error: Wrong PPU Version '+tostr(ppuversion)+'
in '+PPUFn,false);
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
Empty Message___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On Monday, May 6, 2019 10:48 PM, Sven Barth wrote:
> Nozz via fpc-pascal schrieb am Mo., 6. Mai
> 2019, 22:18:
>
>> Empty Message
>
> Depends on what you're using (and the platform). E.g. the compiler itself
> runs without glibc on Linux, but if you need to
> I am curious to know if there is someone out there that have tried to
> use Docker (https://www.docker.com) containers to build fpc applications?
Search docker hub, you will find a lot of them, either fpc only, with
lazarus, single target or even cross compiling ready.
--
Sent from
> How are the FPC RTL documentations generated? I wanted to see if I could
generate .docsets files from them also.
A starting point: https://wiki.freepascal.org/FPCDocs_Tutorial
I believe that "write me" part is not far from calling make with certain
options.
--
Sent from: http:
On 02/11/2019 16:55, Ryan Joseph via fpc-pascal wrote:
I've wanted to make a generic version of a vector for a while but I always give
up because it seems not very possible. It's probably not even a great idea
because many methods don't translate between float and integer
FPC 3.3.1-r43022 [2019/09/16] for Linux x64. This code crashes, because
fpc sees 'x', 'y' wrong:
Py_BuildValue('{sLsisisisisisisOsOsOsisisisisisO}',
'tag',
Mark.Tag,
'x',
Mark.PosX,
'y',
Mark.PosY,
ows only"-> "parameter is used on Windows only"
--
Regards,
Alexey
___________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
https://www.freepascal.org/docs-html/current/fcl/syncobjs/teventobject.manualreset.html
text is poor, even the text in .Create (about ManualReset) is more
detailed, so copy text from .Create to this page.
--
Regards,
Alexey
___
fpc-pascal maillist
Procedure TStrings.SetDelimitedText(const AValue: string); has about 16
calls to Length(AValue), so make a variable NLen to speed up it.
--
Regards,
Alexey
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi
e;
end;
end;
--
Regards,
Alexey
___________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
number */
*mode_t st_mode; /* inode protection mode */*
FPC--
https://github.com/graemeg/freepascal/blob/master/rtl/bsd/ostypes.inc#L65
the 1st freebsd type is compatible with FPC (I checked only by list of
fields and order of fields, w/out checking aligns). the 2nd is NOT
co
ds,
Alexey
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Hi,
I experienced some strange behaviour with TJSONConfig.Clear.
I'm using fpc 3.0.4 32-bit on Win10-64.
(While I do have fpc trunk as well, the program is a Lazaurs GUI
program and I don't like using Lazarus (trunk) in combination with fpc
trunk.)
I have a TJSONConfig that I us
On Sat, Nov 23, 2019 at 7:47 PM Bart wrote:
As I was afraid: User error!
Cfg.JSONOptions := Cfg.JSONOptions + [joIgnoreTrailingComma];
This forces a reload of the file (since Filename isn't empty at this point).
(B.t.w. fpc trunk raise an error :
An unhandled exception occurred at $004
se;
{$endif}
SL.SkipLastLineBreak := True;
S := 'ä'; //S has CodePage CP_UTF8
SL.Add(S);
SL.SaveToFile('slU.txt'{$if fpc_fullversion > 30200}, TEncoding.UTF8{$endif});
SL.SaveToFile('slA.txt'{$if fpc_fullversion > 30200}, TEncoding.ANSI{$endif});
SL.Free;
re. So you can make your own main in a separate file that
must be linked in during linking which calls whatever name you pass to -XM.
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
_______
fpc-pascal maillist - fpc-pasca
ini_lexmap:= TIniFile.Create(fn_lexmap_final);
try
ini_lexmap.WriteString('ref', IntToStr(i_sub), s_lexer);
finally
FreeAndNil(ini_lexmap);
end;
with FPC trunk it converts .ini file to UTF8 BOM! Bad, because then my
code reads this
TIniFile manually adds the BOM to the first Line.
Then SaveToFile is called, which (if FEncoding = Utf8) will add the BOM again?
Bart
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc
On Fri, Jan 10, 2020 at 5:57 PM AlexeyT via fpc-pascal
wrote:
> 1) don't write BOM via WriteString
It doesn't AFAICS.
The BOM is written in UpdateFile.
> 2) if BOM is there, allow ReadString to find section at the file begin:
> BOMCHARS[ref]
I can read/write IniFiles with
>> 2) if BOM is there, allow ReadString to find section at the file begin:
I can read/write IniFiles with BOM with fpc r43847, with and withoud
DefautSystemCodePage := CP_UTF8.
Sorry, my mistake-- TIniFile can read this BOM file, but my software cannot:
a) I've fixed one place w
Can you add TIniFile.WriteBom property? it's not quite enough, I need to
disable it globally in entire app (I have ~10 ini objects), so
additional global default is needed (like Lazarus has global variables).
--
Regards,
Alexey
_______
fpc-p
On Fri, Jan 10, 2020 at 11:30 PM AlexeyT via fpc-pascal
wrote:
> Can you add TIniFile.WriteBom property? it's not quite enough, I need to
> disable it globally in entire app (I have ~10 ini objects), so
> additional global default is needed (like Lazarus has global variables).
Op
--
Bart
_______
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
1 - 100 of 3373 matches
Mail list logo