These are chat archives for IndySockets/Indy

27th
Nov 2017
Remy Lebeau
@rlebeau
Nov 27 2017 18:22
@decfpc Indy has its own class for ASCII (TIdASCIIEncoding), it shouldn't be using iconv for ASCII. What are you doing exactly that is causing Indy to use iconv for ASCII?
@JEisenheim_twitter I can't reproduce the crash using XE2 on Win7 Home Premium using Indy r5441. IN6ADDR_LOOPBACK_INIT runs fine for me.
Remy Lebeau
@rlebeau
Nov 27 2017 18:30
@irawancepu true that Microsoft is free to change things, but that is not the case in this situation since IN6ADDR_LOOPBACK_INIT is implemented manually by Indy, it is just a call to FillChar() to zero out the s6_bytes array and then set the last byte to 1:
function IN6ADDR_LOOPBACK_INIT: TIn6Addr;
{$IFDEF USE_INLINE}inline;{$ENDIF}
begin
  System.FillChar(Result.s6_bytes, SIZE_TIN6ADDR, 0);    {Do not Localize}
  Result.s6_bytes[15] := 1;
end;