[fpc-pascal] Resourcestrings in FPC 3.0

Michael Van Canneyt michael at freepascal.org
Sun Sep 20 09:00:33 CEST 2015



On Sun, 20 Sep 2015, Martin Schreiber wrote:

> Hi,
> I did not find resourcestrings mentioned here:
> http://wiki.freepascal.org/User_Changes_3.0
> http://wiki.freepascal.org/FPC_Unicode_support
>
> There encoding is not mentioned here:
> http://www.freepascal.org/docs-html/prog/progse39.html#x228-2410009.2
>
> http://www.freepascal.org/docs-html/prog/progse40.html
> states:
> "
> The resource strings are stored in tables, one per unit, and one for the
> program, if it contains a resourcestring section as well. Each resourcestring
> is stored with its name, hash value, default value, and the current value,
> all as AnsiStrings.
> "
>
> Are there any changes? How resourcestrings are encoded?

Good remark.

The only change I am aware of is that the compiler can (and by default does, I think)
write the resource strings as a JSON file instead of the older .rst format. 
[Note to self: I should still document this.]

That being the case, I would think the most reasonable format is UTF-8, but this is speculation.


Michael.



More information about the fpc-pascal mailing list