Bug 117365 - Decimal separator is not updated on language change
Summary: Decimal separator is not updated on language change
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Number-Format Writer-Tables-Number-Recognition
  Show dependency treegraph
 
Reported: 2018-05-01 08:26 UTC by Heiko Tietze
Modified: 2025-04-17 08:14 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example document (9.50 KB, application/vnd.oasis.opendocument.text)
2018-05-01 08:26 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2018-05-01 08:26:41 UTC
Created attachment 141804 [details]
Example document

I'm using a table to enter numbers, sum it up and multiply with 0.19 (VAT). Depending on the language the decimal separator is a comma (German) or a point (English). When I switch the language of the text formulas like these are recalculated and the inappropriate separator leads to wrong results.

(The example has been done in German with 0,19, switching the language for all text to English compromises the calculation)
Comment 1 nurcantur 2018-05-18 07:38:33 UTC
Confirmed in Version: 6.0.1.1
Build ID: 1:6.0.1-1~bpo9+1
CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group

Changing the default language of the document caused this bug.
Comment 2 nurcantur 2018-05-18 07:40:25 UTC
also confirmed in Version: 6.1.0.0.alpha1+
Build ID: b2b1d0a4c4ffcba0e32e5909a61de43eeaf98c25
CPU threads: 4; OS: Mac OS X 10.13.4; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-05-15_23:37:15
Locale: tr-TR (en_TR.UTF-8); Calc: group
Comment 3 nurcantur 2018-05-18 08:29:24 UTC
"See also" https://bugs.documentfoundation.org/show_bug.cgi?id=42518
Comment 4 Wolfgang Denk 2018-05-18 08:57:08 UTC
This bug is especially nasty as there is no hint that any format error was detected in the formula, so you get wrong results without any indication of a problem.

I consider it _mandatory_ that such format errors in the input _must_not_ go unnoticed.
Comment 5 Laurent Balland 2018-05-19 17:55:13 UTC
I cannot reproduce with Version: 6.0.4.2
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
Threads CPU : 8; OS : Linux 4.13; UI Render : par défaut; VCL: gtk2; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group

Could you give a step by step procedure?
Comment 6 nurcantur 2018-05-20 19:04:54 UTC
1 Open the example_document
2 Set Default Languages of Documents to English(USA) under the menu Tools> Language> For All Text> More
3 Save and close the document.
4 Open up the document again. You can see the wrong calculations. 

Changing the Language of locale setting is worked correctly. Only changing the Default Language of Document is cause that miss calculation.
 

 
(In reply to Laurent BP from comment #5)
> I cannot reproduce with Version: 6.0.4.2
> Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
> Threads CPU : 8; OS : Linux 4.13; UI Render : par défaut; VCL: gtk2; 
> Locale : fr-FR (fr_FR.UTF-8); Calc: group
> 
> Could you give a step by step procedure?
Comment 7 Laurent Balland 2018-05-21 15:50:25 UTC
OK. I can reproduce also with Version: 5.4.7.1
Build ID: ef425abf896c652d177000096228d1dbcfe9c7af
Threads CPU : 8; OS : Linux 4.13; UI Render : par défaut; VCL : gtk2; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group

Change version accordingly
Comment 8 Laurent Balland 2018-05-21 15:52:36 UTC
Reproduce with Version: 5.2.7.2
Build ID: 2b7f1e640c46ceb28adf43ee075a6e8b8439ed10
Threads CPU : 8; Version de l'OS :Linux 4.13; UI Render : par défaut; VCL : gtk2; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Comment 9 QA Administrators 2019-05-22 02:52:55 UTC Comment hidden (obsolete)
Comment 10 Thomas Lendo 2019-05-24 08:00:03 UTC
Issue still reproducible.

Version: 6.3.0.0.alpha1+ (x64)
Build ID: c3245cfd54f391111afb424867ab483096d9de5e
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-05-19_22:59:06
Locale: en-US (de_AT); UI-Language: en-US
Comment 11 QA Administrators 2021-05-24 04:26:23 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2023-05-25 03:16:16 UTC Comment hidden (obsolete)
Comment 13 Laurent Balland 2025-04-17 08:14:39 UTC
I do still reproduce with Version: 24.8.6.2 (X86_64) / LibreOffice Community
Build ID: d50be90c1d90f0f90a5235ffcbbafbbfa38a83c2
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded