[RFC PATCH] Warn about commas in floating point values?

Linus Torvalds torvalds at linux-foundation.org
Thu Mar 7 12:36:26 PST 2013


On Thu, Mar 7, 2013 at 12:25 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
>
> Do you think this is something we should alert the user with a GError
> about? Or should we just do this silently? I'm torn... my expectation
> would be that this happens only on the rare occasions when people import
> from odd formats - and in that case a GError might be a good idea to
> encourage them to take a closer look at the data...

If we simplify the xslt translations, we can't warn about it.

At the same time, it would probably be nice for *developers* to see
it. Probably just once, though, not for every value. So maybe that
'fprintf()' together with a static flag variable or something.

Or we could do a GError, and just have a separate flag that silences
it for non-native ones. So we'd only get the error if we see it from a
native subsurface xml load.

                Linus


More information about the subsurface mailing list