View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0037605||FPC||RTL||public||2020-08-20 18:59||2020-08-27 10:01|
|Reporter||Luis Henrique||Assigned To||Michael Van Canneyt|
|Fixed in Version||3.3.1|
|Summary||0037605: Can't disable quoting in TStrings|
|Description||As stated in http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Classes.TStrings.QuoteChar setting QuoteChar to null should disable the quote, but it won't work in FPC 3.2.|
|Steps To Reproduce||Set TStrings.QuoteChar to #0 (null)|
Check the DelimitedText property, it will be quoted with null bytes instead of no quote at all
|Tags||delphi compatibility, TStrings|
|Fixed in Revision||46530|
||Note that FPC solved the same problem by a special property alwaysquote|
||That's something different Marco. With QuoteChar you can define a char which is used to qoute (", ', ?, #0, 0000013, 0001337, etc)|
Using 3.0.4 I would say it's broke and most likely is also this way with 3.2.
If you don't specify "StrictDelimiter" it creates an empty string, maybe full of nulls like Luis stated.
But if you do specify "StrictDelimiter" it then works but of course it now is accepting the space of the first entry as valid part of the string but does insert a "," in the second item.
So basically with non strict delimiter it should also be inserting a "," to replace the SPACE of the first entry, since that too is a delimiter "<Space>"
Guess I could run that through Delphi to see what happens..
EDIT: Just tried that in Delphi
I stand correct, it works the same way in either Strict or Non strict..
the space on the first entry does not get a comma inserted there but it does include the space.
I guess this is logic since a space is a delimiter too so it should build this way and with strict mode it also should be there too of course.
So I would say generating Blank results is not the desired output.
||Fixed, thanks for reporting.|
||Shouldn't https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/classes/stringl.inc?view=markup&pathrev=46530#l253 return an empty string if QuoteChar is null?|
||You are right, I missed that. Fixed in 46715.|
|2020-08-20 18:59||Luis Henrique||New Issue|
|2020-08-20 18:59||Luis Henrique||File Added: strings_quotechar_null.pp|
|2020-08-20 19:00||Luis Henrique||Tag Attached: delphi compatibility|
|2020-08-20 19:00||Luis Henrique||Tag Attached: TStrings|
|2020-08-20 22:54||Marco van de Voort||Note Added: 0125041|
|2020-08-20 23:04||ravi dion||Note Added: 0125042|
|2020-08-20 23:20||Michael Van Canneyt||Assigned To||=> Michael Van Canneyt|
|2020-08-20 23:20||Michael Van Canneyt||Status||new => assigned|
|2020-08-21 00:29||jamie philbrook||Note Added: 0125048|
|2020-08-21 00:30||jamie philbrook||Note Edited: 0125048||View Revisions|
|2020-08-21 00:38||jamie philbrook||Note Edited: 0125048||View Revisions|
|2020-08-21 09:39||Michael Van Canneyt||Status||assigned => resolved|
|2020-08-21 09:39||Michael Van Canneyt||Resolution||open => fixed|
|2020-08-21 09:39||Michael Van Canneyt||Fixed in Version||=> 3.3.1|
|2020-08-21 09:39||Michael Van Canneyt||Fixed in Revision||=> 46530|
|2020-08-21 09:39||Michael Van Canneyt||FPCTarget||=> 3.2.2|
|2020-08-21 09:39||Michael Van Canneyt||Note Added: 0125053|
|2020-08-26 15:25||Luis Henrique||Note Added: 0125132|
|2020-08-27 10:01||Michael Van Canneyt||Note Added: 0125147|