kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #06112
Re: [PATCH] Saving plot dialog settings
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Dick Hollenbeck <dick@xxxxxxxxxxx>
-
Date:
Fri, 28 Jan 2011 12:11:06 -0600
-
In-reply-to:
<AANLkTi=nbGHGu86Q86RKWpkOeYpP_vnnfYQmLKk1C3EK@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
On 01/28/2011 11:18 AM, Marco Mattila wrote:
> On Fri, Jan 28, 2011 at 12:21 AM, Dick Hollenbeck <dick@xxxxxxxxxxx> wrote:
>> Any "complex" string that is capable of having either whitespace or quotes
>> in it should be wrapped using
>>
>> aFormatter->Quoted( CONV_TO_UTF8(blah) ).c_str(),
> I'm working on this now. Should there be something like
>
> if( strchr( quote_char, *wrapee ) )
> return quote_char;
>
> in the for loop of OUTPUTFORMATTER::GetQuotedChar? Otherwise it seems
> that a string with internal quotes is not wrapped in quotes.
Here are two things, either of which would define a problem:
1) Is it incompatible with the what freerouter expects or can tolerate?
2) Is it incompatible with what the DSNLEXER expects or can tolerate?
I don't know that the condition you state meets either of these criteria,
but I will investigate and get back to you. The Quoted() function was
written to make DSNLEXER happy and however unusual things look there, as
long as those two code bodies agree, then it may not be an issue. What does
it mean to "agree"? This is the round-tripping of 8 bit text to and from
the quoted form, those two strings need to agree. This may not look like
what you expect or want on disk.
Having said that, then are you saying a string like this:
AB"CD
On the way out, *before* quoting will be a problem? Will not come back in
via DSNLEXER? Have you verified this problem string with actual testing?
Thanks,
Dick
Follow ups
References
-
[PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-02
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-03
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Wayne Stambaugh, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: jp.charras, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-27
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-27
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-28