# from Jean-Marc Lasgouttes
# on Wednesday 07 September 2005 04:47:
>So the following patches are OK?
>
>Lars> guess so
>
>I applied them.
Thanks to everybody who followed-up on this. I wasn't sure if I was
making any sense working without a $HOME -- otherwise I would have
filed a bug report.
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
| So the following patches are OK?
Lars> guess so
I applied them.
JMarc
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
>
| Lars> Georg Baum <[EMAIL PROTECTED]> writes:
| | I'd prefer 2/, since it does not make sense to subtitute an empty part of a
| | string with something else.
>
| Lars> agree
>
| So
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Georg Baum <[EMAIL PROTECTED]> writes:
| I'd prefer 2/, since it does not make sense to subtitute an empty part of a
| string with something else.
Lars> agree
So the following patches are OK?
JMarc
Index: src/support/Change
Georg Baum <[EMAIL PROTECTED]> writes:
| Jean-Marc Lasgouttes wrote:
>
>> 1/ make subst(str, from, to) directly return when from is empty. This
>> seems to be very reasonable semantics.
>>
>> 2/ make subst assert on this case (since the code does not work in
>> this case) and fix MakeDisplayPath.
Jean-Marc Lasgouttes wrote:
> 1/ make subst(str, from, to) directly return when from is empty. This
> seems to be very reasonable semantics.
>
> 2/ make subst assert on this case (since the code does not work in
> this case) and fix MakeDisplayPath.
>
> What would you prefer?
I'd prefer 2/, sin
> "Eric" == Eric Wilhelm <[EMAIL PROTECTED]> writes:
Eric> Hi again. I've traced this cgi export bug into filetools.C
Eric> (MakeDisplayPath) and from there to lstrings.C and it is stuck
Eric> in this loop.
Eric> while ((i = lstr.find(oldstr, i)) != string::npos) { lyxerr <<
Eric> "while su
Hi again.
I've traced this cgi export bug into filetools.C (MakeDisplayPath) and
from there to lstrings.C and it is stuck in this loop.
while ((i = lstr.find(oldstr, i)) != string::npos) {
lyxerr << "while subst " << i << endl;
lstr.replace(i, olen, newstr