power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

TJavaScript::encode() float encoding depends on current locale #390

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is practically a duplicate of issue 379, except that it's about 
TJavaScript::encode(), not TJSON::encode(). The problem however is exactly that 
same, ie. if you're running Prado on a computer where the locale is set to a 
language that's using a decimal separator different from a dot, then all/any 
calls to TJavaScript::encode() calls (including all active/client-side control 
registrations that also pass floats as part of the parameter array) will emit 
invalid JavaScript code.

Bug is present in the current Prado trunk.

Original issue reported on code.google.com by google...@pcforum.hu on 7 Mar 2012 at 10:17

GoogleCodeExporter commented 8 years ago
fixed in r3116, with minor changes from the patch you published in #391

Original comment by ctrlal...@gmail.com on 23 Mar 2012 at 6:15