Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Sven Barth via fpc-pascal wrote: On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: Fixed. Thanks for the patch. There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Sven Barth via fpc-pascal
Michael Van Canneyt via fpc-pascal schrieb am So., 14. März 2021, 18:03: > > > On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: > > > On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal > > wrote: > > > >> Fixed. Thanks for the patch. > >> There was a second issue, which is now

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: Fixed. Thanks for the patch. There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to 3.2

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: > Fixed. Thanks for the patch. > There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to 3.2 fixes branch? -- Bart

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 2:55 PM Bart wrote: I think I have a fix, will report it. Reported as https://bugs.freepascal.org/view.php?id=38622 Possible patch attached in the bugreport. Fixed. Thanks for the patch. There was a second issue,

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 12:43 AM Michael Van Canneyt via fpc-pascal wrote: > Do I misunderstand the purpose of this function or is this a bug? Seems like a bug. I'll report it then. Do you know if we have a test suite for this function, so

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 2:55 PM Bart wrote: > I think I have a fix, will report it. Reported as https://bugs.freepascal.org/view.php?id=38622 Possible patch attached in the bugreport. -- Bart ___ fpc-pascal maillist -

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 1:49 PM Bart wrote: > Do you know if we have a test suite for this function, so I can test > if there ar regressions when I try to fix it? Found it already. I think I have a fix, will report it. -- Bart ___ fpc-pascal

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 12:43 AM Michael Van Canneyt via fpc-pascal wrote: > > Do I misunderstand the purpose of this function or is this a bug? > > Seems like a bug. I'll report it then. Do you know if we have a test suite for this function, so I can test if there ar regressions when I try to

Re: [fpc-pascal] JSONStringToString question

2021-03-13 Thread Michael Van Canneyt via fpc-pascal
On Sat, 13 Mar 2021, Bart via fpc-pascal wrote: From : https://www.freepascal.org/docs-html/current/fcl/fpjson/jsonstringtostring.html Function result Pascal string with escaped characters replaced {$mode objfpc} {$h+} uses fpjson; var S1, S2: TJSONStringType; begin repeat

[fpc-pascal] JSONStringToString question

2021-03-13 Thread Bart via fpc-pascal
From : https://www.freepascal.org/docs-html/current/fcl/fpjson/jsonstringtostring.html Function result Pascal string with escaped characters replaced {$mode objfpc} {$h+} uses fpjson; var S1, S2: TJSONStringType; begin repeat write('S: ');readln(S2); S1 :=