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

Miika Turkia miika.turkia at gmail.com
Thu Mar 7 19:55:33 PST 2013


On Fri, Mar 8, 2013 at 12:12 AM, Dirk Hohndel <dirk at hohndel.org> wrote:
> Linus Torvalds <torvalds at linux-foundation.org> writes:
>
>> On Thu, Mar 7, 2013 at 1:26 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
>>>>
>>>> If we simplify the xslt translations, we can't warn about it.
>>>
>>> Umm, what? You lost me.
>>
>> The comma will the the *norm* for anything that gets translated with
>> xslt in a locale that just prints them out that way.
>>
>> Right now Miika goes to insane lengths to format things with a decimal
>> point. All of that is just wasted effort. And we can't warn about the
>> commas, because it would warn for perfectly fine data.
>
> Got it. OK.
>
> I'll take your fragment, add your SOB, figure out how we track that this
> is a Subsurface native file and make all of this magically work as
> intended :-)

I could e.g. change the program attribute of the produced XML to
subsurface-import. There is no point in "lying" about the format if
there is a difference in parsing subsurface produced files versus XSLT
mangled files.

miika


More information about the subsurface mailing list