<div dir="ltr">That fixes it, but then the question is why does {$mode delphi} differ from {$mode objfpc}?</div>