[fpc-pascal] Unicodestrings and Assign(File)
XHajT03 at hajny.biz
Sun May 20 15:06:56 CEST 2012
On Sun, May 20, 2012 14:40, Jürgen Hestermann wrote:
> In "fpc\rtl\inc\file.inc" (and fpc\fpc\rtl\inc\text.inc) the declaration
> of "Assign"
> uses the generic "String" type for the file name. I think this can be
> AnsiString too, so it may be longer than 255 characters.
> But the assignment to the internal *rec element "name" (which
> is "array[0..255] of char") is done with
> That would be a bug IMO when S is longer than 255 characters.
> "Move" does no range check.
No, unit System (which uses these include files) is never compiled with $H+.
More information about the fpc-pascal