Yes, that's what I've been doing. It appears that my example works on 7.6 because sprint doesn't implement %-F, thus decoding properly.
I guess at this point it would be a compat problem to fix. Perhaps I'll add a note to the autodoc about it. On a side note, it's pretty frustrating that sscanf/sprintf don't complain when an unsupported/unimplemented format is used.
Bill
On Feb 18, 2013, at 11:05 AM, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum 10353@lyskom.lysator.liu.se wrote:
The problem is that the "-" is not implemented for sscanf %F, and never was AFAIK. You need to do
sscanf(reverse(f), "%8F", z);
instead.