<div dir="ltr">Hello,<div><br></div><div>Consider the following code:</div><div><br></div><div>=== code ===</div><div><br></div><div><div>program project1;</div><div><br></div><div>{$mode objfpc}{$H+}</div><div><b>//{$codepage utf8}</b></div><div><br></div><div>uses Classes;</div><div><br></div><div>type</div><div>  TFoo = class helper for TStream</div><div>  public</div><div>    procedure Bar;</div><div>  end;</div><div><br></div><div>  procedure TFoo.Bar;</div><div>  begin</div><div>  end;</div><div><br></div><div>var</div><div>  s: string = '';</div><div>  m: TStream;</div><div>begin</div><div>  m := TMemoryStream.Create;</div><div>  try</div><div>    m.Bar;</div><div>  finally</div><div>    m.Free;</div><div>  end;</div><div>end.</div></div><div><br></div><div>=== /code ===<br clear="all"><div><br></div><div>It compiles fine, but when you uncomment the line "//{$codepage utf8}", it raises:</div><div><br></div><div>'Error: identifier idents no member "Bar"'</div><div><br></div><div>If you confirm it as bug I can open a issue on bugtracker.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>