more secure than an open source library that is standard in
unix world, with contributers like IBM etc.?
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
jlist wrote:
> I was reading TLS's wikipedia page the other day. I find
> that although it's a lot of wo
Erik,
What component, version and when downloaded.
There was an issue with the dot in older THtmlSmtpCli, but that
should be fixed in latest ICSV6.
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
Erik Van Gorp wrote:
> We have a Delphi application, using
Hi,
Just found a download link of Troy Wolbrink's free TNT Unicode Controls
http://mh-nexus.de/en/tntunicodecontrols.php (untested!)
While reading the first line I realized that we do not have a Unicode
exception class yet. This is very important for both client and server.
--
Arno Ga
er since exception messages
are also sent to clients:
on E: Exception do begin
Answer := Format(msgStorFailed, [E.Message]);
end;
> Delphi 2009 does full Unicode display.
All this stuff is so much easier in Delphi 2009.
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.
authentication was what the server expected.
That sounds, at least, not very efficient and the server might treat this
as an DOS-attempt. I'm no expert in HTTP and the THttpCli, so this behaviour
of THttpCli might be completely correct.
--
Arno Garrels
--
To unsubscribe or change your settings f
is not the current behaviour of the
> HttpCli component, then perhaps we can work in
> implementing this.
I don't think it's current THttpCli's behaviour. How to handle
authentication methods depending on keep-alive with POST, if the
connection has to be dropped?
--
seems to be
triggered in this case. LastResponse should the contain 401/407,
possibly you handle this case from that event?
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our web
d connection to Port
21 and tells the server to treat this second connection as the
data connection.
--
Arno Garrels
>
> As above, what's wrong with Passive (or PASIV) mode?
>
> Cheers.
>
> Dave B
>
>> -Original Message-
>> From: Angus Roberts
ON enables UTF8
file listings and uploads, UTF8 can not be set off so don't send command
if ANSI needed."
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi
Angus Robertson - Magenta Systems Ltd wrote:
>> Do you have aplans for UTF-8 TFtpServer? If so, any ETA?
>
> Much of the low level stuff is done, common with the client, the
> server itself will be done in the next week or two, depending on my
> other commitments.
Should be worth mentioning that
Maurizio Lotauro wrote:
> This will work with Basic bu not with NTLM because (IIRC) the
> authentication phase is started by the server with the first 401.
Looks like sending body data must be delayed somehow, realy not
nice!
Maybe OnSendBegin is the right place:
THttpCli.SocketSessionConnected(
Maurizio Lotauro wrote:
> Scrive "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
>
> [...]
>
>> However, I wonder how this works in practice. I
>> mean, how do regular browsers deal with it?
>
> Good question. Someone that know the html can prepare a page with a
> text box where write the content to s
Arno Garrels wrote:
> Maurizio Lotauro wrote:
>> Scrive "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
>>
>> [...]
>>
>>> However, I wonder how this works in practice. I
>>> mean, how do regular browsers deal with it?
>>
>> Go
Hi John,
I just checked in a few CBuilder related changes.
Please check the SVN repository.
--
Arno Garrels
John Grabner wrote:
> I am trying to get ICS to compile for C++Builder 2009. I am using the
> V7 Alpha as my base. I get a compiler error in OverbyteIcsFtpSrv.pas
> at line 4250.
ending and pops up the login dialog, everything
still in winsock buffer is send out nevertheless and also acknowledged by
the server.
3) IE then sends just the header with the credentials and continues posting
the rest of the data.
--
Arno Garrels
--
To unsubscribe or change your settin
Arno Garrels wrote:
> 3) IE then sends just the header with the credentials and continues
> posting the rest of the data.
:-) Should read "IE then sends just the header with credentials and continues
posting remaining data."
--
Arno
--
To unsubscribe or change your setti
[EMAIL PROTECTED] wrote:
> So, if I understand correctly, part of the body was
> sent after the 401 response (that which was in the
> send buffer already), and the remainder was sent
> after the authentication header was sent?
My mistake, there are too many packets in the log.
Actually IE resends
Paul wrote:
> I'm planning to upgrade to D2009 for the unicode UI.
Yeah, D2009 rocks :-)
> However, I want all communications in Ansi.
> How can this be done ?
Simply by sending and receiving ANSI data exclusively ;-)
Seriously, I do not understand this question.
--
Arno Ga
e stream. With a line-based text file
debugging was easy.
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
uld try to replicate the behaviour in HttpCli: perhaps adding a
> new machine state that instead of re-sending when 401 is detected, it
> makes sure that the body has been sent completely, and if not, it
> delays re-sending until it does.
Implementation won't be easy, otherwise Mauriz
rks with the link Maurizio provided. Don't know
whether it works with a proxy and/or NTLM etc. (forgot everything about it)
so it's most likely buggy but might be worth testing and fixing it ;-)
--
Arno Garrels
procedure THttpCli.StateChange(NewState : THttpState);
[..]
07. It will probably take a while until all vendors
support D2009.
--
Arno
>
> Paul
>
>
> - Original Message -
> From: "Arno Garrels" <[EMAIL PROTECTED]>
> To: "ICS support mailing"
> Sent: Tuesday, September 23, 2008 11:18 PM
> S
Maurizio Lotauro wrote:
> Scrive Arno Garrels <[EMAIL PROTECTED]>:
>
>> DZ-Jay wrote:
>>
>>> we should try to replicate the behaviour in HttpCli: perhaps adding
>>> a new machine state that instead of re-sending when 401 is
>>> detected, it mak
Paul wrote:
>> In D2009 the type "string" is mapped to UnicodeString. If you want
>> ansi string, just use type AnsiString.
>
> yes, but HttpCli.Url is a string, which would be a unicodestring in
> D2009.
> The only option is to change all "String" to "AnsiString" and
> "PChar" to "PAnsiChar" in I
Maurizio Lotauro wrote:
> It seems quite easy and without drawback because reproduce the
> "normal" flow. What do you think?
Sounds reasonable.
> Arno, I'll try to add these changes to the version you send me so you
> can give it a try.
Will do. Unfortunately my very old proxy machine that I us
oded UTF-8 then percent-encoded.
> If this would work, then I can proceed.
> I can't use ICS V7 though, I'm prohibited to use beta software.
Don't you think that you would just produce another beta?
Your time would be better invested in Icsv7.
--
Arno Garrels
> t
nd;
Is there a reason I'm not aware of why this check is also required when
FRequestType = httpHEAD?
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
Hi,
Can somebody confirm that characters above #127 have to be
encoded UTF-8 first before they are percent-encoded?
If that's correct, Url.pas was and is currently buggy.
Sources:
rfc3986 http://tools.ietf.org/html/rfc3986
http://en.wikipedia.org/wiki/Percent-encoding
--
Arno Garrels
-
Arno Garrels wrote:
> Hi,
>
> Can somebody confirm that characters above #127 have to be
> encoded UTF-8 first before they are percent-encoded?
> If that's correct, Url.pas was and is currently buggy.
Same or similar functions are used in the HTTP server.
I have a fix for Ov
Fastream Technologies wrote:
> I think this bug could be a reason why our web server customers have
> been getting complained with html file manipulation in non-ansi...
Can you confirm that it's a bug?
--
Arno Garrels
>
> On Sat, Sep 27, 2008 at 7:14 PM, Arno Garrels
jlist wrote:
> Although I was a contributor ICS SSL, I haven't really got to play
> with it. I gave it a try last night with V6 and had a few questions.
>
> 1. I see two sets of .bdsproj files in Vc32 folder, one with Ssl
> in the file names and have USE_SSL;USE_ZLIB_OBJ defined, one without.
> Sh
jlist wrote:
> Hello Arno,
>
> Thanks for the reply.
>
>>> 3. After I generated the cert files, HttpsTst demo worked fine. My
>>> question here is, is there an easy way to use an embedded cert and
>>> key string, as opposed to external files? I notice that the
>>> SslContext class takes file name
Arno Garrels wrote:
> jlist wrote:
>> Hello Arno,
>>
>> Thanks for the reply.
>>
>>>> 3. After I generated the cert files, HttpsTst demo worked fine. My
>>>> question here is, is there an easy way to use an embedded cert and
>>>&
_X509(Bio, nil, nil,
PAnsiChar('password'));
f_BIO_Free(BIO);
if X.X509 = nil then
RaiseLastOpenSslError(Exception);
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsoc
Arno Garrels wrote:
> jlist wrote:
>> What I want to do is to avoid providing the two .pem files as
>> separate files. Instead, I'd like to read the content of the two
>> files and hard-code them in a string variable, or in resource.
>
> Private Key and certif
(note the
> lowercase e with circumflex), it sends "GET /F%C3%AAte" to the
> webserver. This probably answers your question if we assume IE is
> standard with URL.
FireFox URLs are sent UTF-8 encoded as well.
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket
F-8 and
UrlDecode() to assume UTF-8 in case of the byte sequence to be decoded
has been checked for valid UTF-8 successfully, otherwise the function
assumes local default code page in D2009 or does not change the encoding
in older Delphi versions. The fact that both IE and Firebird send UTF-8
URLs se
DZ-Jay wrote:
> On Sep 28, 2008, at 09:49, Arno Garrels wrote:
>
>> It doesn't seem to be mandatory, however suggested to use UTF-8 since
>> January 2005, RFC 3986
>
> Thank you! For some reason I missed that 3986 obsoletes 2396.
If you are interested, I just ch
Maurizio Lotauro wrote:
> It seems quite easy and without drawback because reproduce the
> "normal" flow. What do you think?
Updated both ICSv6 and ICSv7 SVN repository.
--
Arno
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailma
harInSet changes will only work
> with D2009. Anyone else should change that back to "char in []"
In my local copy I already removed several functions "IsCharInSysCharSet()"
today from multiple units and added one in OverbyteIcsUtils.pas that also
provides an AnsiChar overload.
e encoding http://de.wikipedia.org/wiki/Punycode
> I mean, for protocols other than http, works the lookup to dns?
I won't bet on that, even though I have no expierence yet ;-)
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.eli
take a look at the SVN log (rev. #192).
Currently there is still an internal discussion about whether or not ICSv7
shall support Unicode with older compilers and the implementation details.
Try an update. Rev. #193 should work again.
--
Arno Garrels
John Grabner wrote:
> Date: Sun, 21
sers,
tested even with Netscape 3.01.
With word-sized characters above #255 (D2009 and ICSv7) modern browsers
render the correct Unicode characters.
Or am I missing something?
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.
as Unicode
code points once they found one character above #255?
> If you specify UTF-8 as the content character set in
> the HTML header, then you only need to encode as entities the
> metacharacters: ampersand, non-breaking-space, and left- and
> right-angled brackets.
Yep.
--
rectory listings,
most file names including characters above #128 will be wrong
when the server does not run on Windows CP 1252.
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our
Arno Garrels wrote:
> Francois Piette wrote:
>
>> In your example, char #162 is replaced by "¢" in the html
>> output. This represent the cnet character whatever the code page is.
>
> Actually that is the bug, since #162 is the cent sign in CP 1252 but
> not
I code page by copy
those characters from the Windows application charmap.exe.
Than start a packet sniffer and log a directory listing.
--
Arno Garrels
>
> On Thu, Oct 9, 2008 at 2:59 PM, Arno Garrels <[EMAIL PROTECTED]>
> wrote:
>> Arno Garrels wrote:
>>> Fran
only purpose was to display particular characters _independent from
the browser's or the HTMl-page's ANSI code page.
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
entities if it doesn't run
in a locale that uses CP 1252!
For example:
Currently char #162 is hard coded to represent the cent sign:
HTML Entity: 'cent' , { #162 cent sign
}
In windows-1251 however #162 maps to the small kyrillic lett
.aspx)
It's possible that Winsock installation is corrupted?
--
Arno Garrels
Guillaume ROQUES wrote:
> Hi,
> I use the FTP Client Component in 2 of my applications :
> 1-Just a tool to manage the FTP connections
> 2-A window service which check, by FTP, if some defined files e
itself.
The twothird character is not 'encoded' either as "⅔" (decimal) or
as "⅔" (hex)? If so, IIS sends plain UTF-16!
> There is nothing in the html header to tell which code page or
> charset is used. --
Browsers seem to be very good in detecting the correct
Francois PIETTE wrote:
>> The twothird character is not 'encoded' either as "⅔"
>> (decimal) or as "⅔" (hex)? If so, IIS sends plain UTF-16!
>
> Yes, no encoding at all. Just the 3 bytes. So UTF-16.
But 3 bytes looks like UTF-8 ?
--
ompatible and
works in D2009 as well :)
--
Arno Garrels
>
> - Original Message -
> From: "Arno Garrels" <[EMAIL PROTECTED]>
> To: "ICS support mailing"
> Sent: Thursday, October 09, 2008 7:03 PM
> Subject: Re: [twsocket] HTML encoding in Htt
Arno Garrels wrote:
> Francois PIETTE wrote:
>>> But 3 bytes looks like UTF-8 ?
>>
>> I don't know. You said it was UTF-16 if not encoded.
>
> I installed IIS 7 on my Vista box and I found that IIS 7
> uses UTF-7 in directory listings.
Arrgh, typo above, I
you created it in TService.OnCreate events would trigger
in main thread context.
> It will
> be run under tne main process so I will (in theory) have no
> "security" problems???
??
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
ns?
--
Arno Garrels
>
> Best Regards,
> SZ
> On Fri, Oct 10, 2008 at 4:41 PM, Arno Garrels <[EMAIL PROTECTED]>
> wrote:
>
>> Arno Garrels wrote:
>>> Francois PIETTE wrote:
>>>>> But 3 bytes looks like UTF-8 ?
>>>>
>>>> I
Fastream Technologies wrote:
> On Sat, Oct 11, 2008 at 6:24 PM, Arno Garrels <[EMAIL PROTECTED]>
> wrote:
>>
>> Fastream Technologies wrote:
>>> Hello Arno,
>>>
>>> If the function is ready, I would like to test it in our special
>>>
ns of the Win32 API to create the file listing,
FindFirstFileW() and FindNextFileW().
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
on't work either. Any ideas what may be wrong? I'm
> struggling with this for two days now.
Have you tried the SslMailSnd demo yet? If not please try.
I just tested with gmail succesfully. Is this ICS v6?
--
Arno Garrels
>
> ICS V5.
>
> --
> Piotr Dałek
> [EMAIL
lCtx, nil);// AG
12/25/07
==> f_SSL_CTX_set_default_passwd_cb(FSslCtx, nil); // AG
12/25/07
==> f_SSL_CTX_set_default_passwd_cb_userdata(FSslCtx, nil); // AG
12/25/07
f_SSL_CTX_free(FSslCtx);
FSslCtx := nil;
end;
{$IFNDE
rvice SID Info, Required
Privileges and StartType AutoDelayed.
Please do not answer to the list, feel free to send me a
PM instead.
PS: Works from NT4 to Vista (should work on Server 2008 as well)
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto
Paul wrote:
> I have a service application with a HtppsCli which has ran fine
> connecting to a server.
> Now, I need the HttpsCli connecting to another webservice first.
> Connecting to this new webservices runs fine, but when the HttpsCli
> connects to another webservice afterwards, it goes wrong
CS version do you use?
> It's still V5
Provided you added the old SSL-fixes to v5 posted to ICS-SSL last year
and to this list recently I have no idea what else might be wrong.
If it works in the GUI application it's likely a bug in your service
code?
--
Arno Garrels
--
To unsubsc
Arno Garrels wrote:
> Paul wrote:
>>> Where to you create your class?
>> in ServiceStart
>>
>>> Async or sync methods?
>> Async
>>
>>> Maybe messages are not processed properly.
>>> Are there more threads beside main thread an
iceThread.ProcessRequests(true);
>except
> on E: exception do
>begin
> Display('Error occured @ ' + DateTimeToStr(now) +
> ' - ' + E.Message, ntlError);
>end;
>end;
> end;
Looks well :-( Message loop is started p
Angus Robertson - Magenta Systems Ltd wrote:
> 2 - Use the SvCom service environment, which allows you to create a
> application that may be run as either a GUI or service.
>
> http://www.aldyn-software.com/svcom.html
>
> I've used this for one new application, and it works nicely, although
> I
://svn.overbyte.be:8443/svn/ics or for ICS-V5 to:
svn://svn.overbyte.be/icsv5 or
http://svn.overbyte.be:8443/svn/icsv5. ICS-V7 is a part of V6, in
ics/branches/icsv7.
All use usercode = ics and password = ics for read access.
Write access is only available to TeamICS.
--
Arno Garrels [TeamICS]
http
FAIK, ICS for C++ Builder 2009 is completely untested, there is a CB
package included which builds w/o errors, that's all.
Please provide the linker error text, also a minimal project that
demonstrates the errors would be very helpful.
--
Arno Garrels
--
To unsubscribe or change your sett
able to update the application if his
certificate expired or has been revoked.
Giving all clients the same certificate that never expires
is IMO nonsense.
2) Clients connecting to the server should also check
whether they can trust the server or not by checking
the server certificate.
--
Ar
DS2\DEBUG\TCPSRV1.OBJ
>>
>> Regards
>> João
>>
>>
>> -Mensagem original-
>> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Em nome
>> de Fastream Technologies
>> Enviada: segunda-feira, 20 de Outubro de 2008 11:39
>&
B-experience).
Can't you set a break point in ClientDataAvailable and step thru
the source code?
--
Arno Garrels
> I'm working with the same example of TcpSrv used in icsv5, that worked
> perfectly in C++ Builder 2007.
> Thank you for the help
> João
> -Mensagem original
nce and do all string operations in Unicode. Note that in 2009 the
W-API is called which are faster since Windows does not convert the
AnsiString back and forth to Unicode internally.
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elist
Ja wrote:
> When It stucks, It's always on 18.2KB, using SSLWSocket. But none of
> this data is being shown in buffer... :/
What ICS-version, ZIP download or SVN checkout?
--
Arno Garrels
>
>
> Dnia 22 października 2008 16:19 Ja <[EMAIL PROTECTED]> napisał(a):
>
Hi,
Six days no messages, very strange...
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
[EMAIL PROTECTED] wrote:
> I received your message fine. Yet, it is indeed
> strange that there haven't been any messages for a week.
Cannot remember that that ever happened previously.
--
Arno Garrels
>
>-dZ.
>
>
>
>> --- Original Message ---
&
> SrvSocket.Port := 'telnet';
> SrvSocket.Proto := 'tcp';
> SrvSocket.Listen;
>
> SrvSocket.Close;
> SrvSocket.Listen; // Invalid argument (#10022 in listen: Port not
> assigned)
>
> Port not assigned?
> What is going on?
That is 'as designe
?
I would not use a home-grown authentication but some well known method
instead. For example CRAM-MD5 or Digest authentication.
--
Arno Garrels
>
>
> Darin Sease
> Building Systems Analyst
> Syracuse City School District
> PH: 315 435 4292
> E: [EMAIL PROTECTED]
--
To un
lem is that the FTP server component does not use
TWSocketServer. In order to keep things simple the FTP server should
also be derived from TWSocketServer like the HTTP as well.
Angus already made an attempt to rewrite the FTP server, but it never
made it into the ICS package :(
--
Arno Garrels
think?
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
Arno Garrels wrote:
> how would you manually maintain, for example, a UTF-8 file name?
OK, notepad could do the trick ;-)
> Hi,
>
> Since Delphi and ICS goes Unicode I suggest to replace
> TIniFile by TRegIniFile in all demo applications.
> TInifile uses Win32 API func
ssions,
There's no problem if you write to HKCU. But current INI files
are stored 'virtualized' in Vista.
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
HKCU.
>
> There is if you want to configure settings for a service to use,
OK, but I'm talking about the ICS demo applications not about service
applications or general use of INI files.
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
ple
ot; in some magical way (name, reg key, etc). That would
> have been nice.
The 'magical way' is to grant access to everyone to those secured objects
upon installation, not very "British".
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing
s searching for a very simple
solution that took not more than a few minutes to change everything.
--
Arno Garrels
Maurizio Lotauro wrote:
> Scrive Arno Garrels <[EMAIL PROTECTED]>:
>
>> Hi,
>>
>> Since Delphi and ICS goes Unicode I suggest to replace
>> TIn
n for checking the validity of a URL?
Since ICS works nonblocking it's possible to have multiple instances
of THttpCli in the same thread. Just create a list or an array of
THttpCli instances and let each instance check one URL concurrently.
All instances can use the same event handlers.
ring(const Section, Ident, Value:
>> string);
>> begin
>> inherited WriteString(Section, Ident, Utf8Encode(Value));
>> end;
>
>
> That's the kind of code I had in mind.
It is not that easy!
The code above might work if String maps to an AnsiString,
how
be the case) AND
> write them if if possible. This would tremendly help those using many
> Delphi versions and using simple ansi values.
What about an option that, if set (default?), would write a UTF-8 line
only if a character above #255 is found?
--
Arno Garrels
--
To unsubscribe or c
siChar(s),
> PAnsiChar(AnsiString((FileName then
>raise EIniFileException.CreateResFmt(@SIniFileWriteError,
> [FileName]); end;
Yes, that should work and is the bare minimum required for use
in the demos. Though it cannot handle a possible BOM.
--
Arno Garrels
--
To unsubs
same code as
in TMemIniFile except LoadValues and UpdateFile needs to be changed.
LoadValues and UpdateFile would handle conversion to and from
UTF-8 and would use OverbyteIcsStreams.TTextStream to read and write
lines to the file.
If TMemIniFile.LoadValues was declared Virtual we could deri
Francois PIETTE wrote:
>> function TMyUnicodeIniFile.ReadString(const Section, Ident,
>> Default: string): string;
>> begin
>> result:=utf8decode(inherited ReadString(section, ident,
>> default)); end;
>>
>> procedure TMyUnicodeIniFile.WriteString(const Section, Ident,
RTT wrote:
>> Yes, that should work and is the bare minimum required for use
>> in the demos. Though it cannot handle a possible BOM.
>>
> With a little trick and we just need to rewrite the create
> constructor.
>
> unit UnicodeIniFile;
>
> interface
> type
> TMyUnicodeIniFile = class(TIniFil
Francois PIETTE wrote:
>>> I have another concern: It would be very handy if the same class
>>> could read the existing ini files (that seems to be the case) AND
>>> write them if if possible. This would tremendly help those using
>>> many Delphi versions and using simple ansi values.
>>
>> What a
RTT wrote:
>>> The D2009 TInitFile already uses the WritePrivateProfileStringW and
>>> GetPrivateProfileStringW versions of the functions, but only work if
>>> the ini file already exists and is Unicode.
>>>
>>
>> Surprise! That works indeed with UTF-16, however if there is a UTF-8
>> BOM and dat
Arno Garrels wrote:
>> function TMyUnicodeIniFile.ReadString(const Section, Ident, Default:
>> string): string;
>> begin
>> result := inherited;
>> if fIsUTF8 then
>>result := utf8decode(result)
>> end;
>
> As I wrote in my previous messag
RTT wrote:
> Arno Garrels wrote:
>> Back again, it does not work reliable for me, please try the
>> attached INI.
>>
>>
> This elist support attachments?! Or my email client made something
> wrong or the elist software trashed the attachment.
> Please send
Angus,
can't you create those INI files at run-time rather than put them in the
package? It is because I just changed the demos to use a function
GetIcsIniFileName which currently returns a subfolder under
CSIDL_LOCAL_APPDATA, this can be easily changed though.
--
Arno
--
To unsubscribe or c
Angus Robertson - Magenta Systems Ltd wrote:
> I have added LANG to our server
< 550 Répertoire /pub/simtelnet introuvable
Nice, I had not yet time to look at your code, does this also define a
language specific ANSI code page? I offer to translate to German anyway.
Also I'll soon fix a few olde
Arno Garrels wrote:
> Arno Garrels wrote:
>>> function TMyUnicodeIniFile.ReadString(const Section, Ident, Default:
>>> string): string;
>>> begin
>>> result := inherited;
>>> if fIsUTF8 then
>>>result := utf8decode(result)
>>>
RTT wrote:
>> My fault, now it works. But it won't be the same level of backwards
>> compatibility that can be achieved with a class derived from
>> TCustomIniFile.
>>
> Can you, please, point one possible problem?
If you derive something like the TMemInFile that writes all data in
one call to a
Angus Robertson - Magenta Systems Ltd wrote:
>> can't you create those INI files at run-time rather than put them
>> in the package?
>
> Only by adding 50 lines of extra code to the multiple demo programs,
> instead of having a simple text file someone can edit. It really is
> overkill for simple
601 - 700 of 2871 matches
Mail list logo