#1 2019-12-19 05:09:12

KevinChen
Member
Registered: 2016-09-10
Posts: 10

SynCommons QuotedStr bug report

Hi,

The newly revised QuotedStr(const S: RawUTF8; Quote: AnsiChar; var result: RawUTF8);
has bug:

PWord(P)^ := ord('"')+ord('"')shl 8;

It should be:

PWord(P)^ := ord(Quote)+ord(Quote)shl 8;

Offline

#2 2019-12-19 10:47:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: SynCommons QuotedStr bug report

Oups...

Should indeed be fixed by https://synopse.info/fossil/info/af3cd59e4b

The new associated tests are https://synopse.info/fossil/info/a28687bf5a

Offline

Board footer

Powered by FluxBB