Apache OpenOffice (AOO) Bugzilla – Issue 62527
formula fields results change when document language is changed
Last modified: 2017-05-20 11:19:50 UTC
It's possible to insert text formulas into writer documents. These formulas may contain number constants with decimal seperators When the document language is changed, the decimal seperators in the document will be interpreted according to the new locale setting. Thus, formulas containing constants will have different results after changing the language. This seems wrong. Constants in formulas should be considered numbers, and, as such, language independent. Changing the document language should change to way number constants are displayed in formulas, not the formula result.
Created attachment 34430 [details] Sample document with en-UK language setting
Created attachment 34431 [details] Sample document with de_DE language setting
This deals with formula fields, not formula objects. Reassigned to ES.
when I change the document language, the decimal seperator in formula fields doesn't change for me, but the result of formulas do: open the second file (test_ger), change the document langauage to english (UK), press F9: the 3 becomes 30. This even seems to be an incorrect calculation. So confirmed with 680_m156 on WinXP Pro SP2.
ES->OS: 1) changing the document language should change the numbers attributes but not the result = yes! 2) as Rainner noticed too: I don't understand why changing the language causes "1,5" to be interpreted as "15" (result is 30). I would rather expect (if we ignore point 1) ) that "1,5" is intepreted as a string so that the result would be 0.
Reset assigne to the default "issues@openoffice.apache.org".