Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-10

Length bug ?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Yann Bat

Hi,

I think I have found a bug in FPC 2.4.0. Tested under Windows XP 32 bits and Linux 32 bits.

program TestLength;
begin
  WriteLn('L =', Length('') );
end.

This program gives L = 1 but I think it should give L = 0.

Is this really a bug ? Can you reproduce this ?

Thanks

Michael Van Canneyt
to Yann Bat

Confirmed on linux.

Please enter a bug report for this.

Michael.

Yann Bat wrote 19 lines
Hi, I think I have found a bug in FPC 2.4.0. Tested under Windows XP 32 bits and Linux 32 bits. program TestLength; begin WriteLn('L =', Length('') ); end. This program gives L = 1 but I think it should give L = 0. Is this really a bug ? Can you reproduce this ? Thanks _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal