Sign in Join

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

Mailing lists / fpc-pascal / 2019-03

*.rst vs *.rsj

10 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Somewhere after FPC 2.6.4 the FPC compiler changed to generating JSON based *.rsj files for resource strings.

1. What was the benefit of doing that? After all, FPC always prides itself in not breaking backward compatibility (Florian and others have said that many times), yet now FPC has done just that. I have quite a few tools that work with the *.rst files. They all now need to be rewritten for the JSON variant.

2. Is it possible to tell FPC 3.0.4 to rather generate the previous *.rst files instead of the default *.rsj?

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote
1. What was the benefit of doing that?

Interestingly, there is not a single mention of the *.rsj change in the FPC release notes. I checked all the following URL's.

http://wiki.freepascal.org/FPC_New_Features_3.0
http://wiki.freepascal.org/User_Changes_3.0
http://wiki.freepascal.org/User_Changes_3.0.2
http://wiki.freepascal.org/User_Changes_3.0.4

Yet I know FPC 2.6.4 still created *.rst files and now FPC 3.0.4 creates *.rsj files. I do not have FPC 3.0 or 3.0.2 releases to test them.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: Somewhere after FPC 2.6.4 the FPC compiler changed to generating JSON based *.rsj files…
Show quoted text 6 lines
Hi, Somewhere after FPC 2.6.4 the FPC compiler changed to generating JSON based *.rsj files for resource strings. 1. What was the benefit of doing that?

AFAIR multilines:
http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-February/097298.html

After all, FPC always prides itself in not breaking backward compatibility (Florian and others have said that many times), yet now FPC has done just that.

"yet now" 3 years ago

Show quoted text 6 lines
I have quite a few tools that work with the *.rst files. They all now need to be rewritten for the JSON variant. 2. Is it possible to tell FPC 3.0.4 to rather generate the previous *.rst files instead of the default *.rsj?

AFAIK no.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote

Umm. Strange that I managed to support multi-line resource strings for years.

Oh well, seeing as FPC 3.0.4 doesn't support *.rst any more, I guess I have no choice but to rewrite my localization utilities. Thanks for the info Mattias.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Florian Klämpfl
to Graeme Geldenhuys: Somewhere after FPC 2.6.4 the FPC compiler changed to generating JSON based *.rsj files…
Graeme Geldenhuys wrote 8 lines
Hi, Somewhere after FPC 2.6.4 the FPC compiler changed to generating JSON based *.rsj files for resource strings. 1. What was the benefit of doing that? After all, FPC always prides itself in not breaking backward compatibility (Florian and others have said that many times), yet now FPC has done just that.

You had the same discussion years ago with Jonas, conclusion: http://lists.freepascal.org/pipermail/fpc-pascal/2016-July/048264.html

Reply by email

Graeme Geldenhuys
to Florian Klämpfl
Florian Klämpfl wrote
You had the same discussion years ago with Jonas, conclusion: http://lists.freepascal.org/pipermail/fpc-pascal/2016-July/048264.html

Awesome! Glad my point of view hasn't changed over time. ;-)

Many of my projects stayed on FPC 2.6.4, and I thought it is time I now move them up to FPC 3.0.4. That's when my localization tools went to sh*t.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Luca Olivetti
to Graeme Geldenhuys

El 6/3/19 a les 23:40, Graeme Geldenhuys ha escrit:

Show quoted text 8 lines
On 06/03/2019 22:30, Florian Klämpfl wrote: > You had the same discussion years ago with Jonas, conclusion: > http://lists.freepascal.org/pipermail/fpc-pascal/2016-July/048264.html Awesome! Glad my point of view hasn't changed over time. ;-) Many of my projects stayed on FPC 2.6.4, and I thought it is time I now move them up to FPC 3.0.4. That's when my localization tools went to sh*t.

Beware, if you use bitpacked records or threading there are bugs in 3.0.4. I have to keep using 2.6.4 due to that.
Apparently the 3.2 branch works fine in my case, but it's still unreleased. Also the transition to codepage aware ansistrings, though not as terrible as I thought, it can still bite you.

Bye

Luca

Reply by email

Victor Campillo
to Luca Olivetti
Luca Olivetti wrote 8 lines
Beware, if you use bitpacked records or threading there are bugs in 3.0.4. I have to keep using 2.6.4 due to that. Apparently the 3.2 branch works fine in my case, but it's still unreleased. Also the transition to codepage aware ansistrings, though not as terrible as I thought, it can still bite you. Bye

Hi Luca,

I use bitpacked records in many of my projects because they are very useful in PLC communications, can you elaborate about the issue on fpc 3.0.4?

Best regards.

Victor Campillo

Reply by email

Luca Olivetti
to Victor Campillo

El 7/3/19 a les 17:44, Victor Campillo ha escrit:

Show quoted text 15 lines
On 7/3/19 9:02, Luca Olivetti wrote: > Beware, if you use bitpacked records or threading there are bugs in > 3.0.4. I have to keep using 2.6.4 due to that. > Apparently the 3.2 branch works fine in my case, but it's still > unreleased. > Also the transition to codepage aware ansistrings, though not as > terrible as I thought, it can still bite you. > > Bye Hi Luca, I use bitpacked records in many of my projects because they are very useful in PLC communications, can you elaborate about the issue on fpc 3.0.4?

Guess whay I'm using them for? ;-)

https://bugs.freepascal.org/view.php?id=30208

Bye

Luca

Reply by email

Victor Campillo
to Luca Olivetti
Luca Olivetti wrote
Guess whay I'm using them for? ;-) https://bugs.freepascal.org/view.php?id=30208

Good to know that I am not alone using Freepascal in industrial environments :-)

The most of my projects are still with FPC 2.6.4 but next week I will start a new one, as FPC 3.2 is already branched to release, I will give it a try.

Thank you very much for point this out, this issue could have bitten me badly.

Regards.

Victor Campillo

Reply by email