Follow-up Comment #3, bug #15695 (project freeciv):
Thanks, fix works when tested.
It looks like insert_escapes will be much slower than the old version,
looking at the unescaped character case:
fz_fprintf(fp, "%c", *str);
instead of a *dest++ = *str++;
This particular case with script.code does not go through insert_escapes (but
all other values in a savefile do).
I noticed a different change when comparing to 2.2, it is not from this
patch:
-code=$
+code = $
Savefiles now use spaces around = everywhere. I guess it was intentionally
changed before.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15695>
_______________________________________________
Meddelandet skickades via/av Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev