[Libreoffice-bugs] [Bug 143508] New: Locale-specific arguments must be treated depending on the cell's number format locale

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 23 07:40:55 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=143508

            Bug ID: 143508
           Summary: Locale-specific arguments must be treated depending on
                    the cell's number format locale
           Product: LibreOffice
           Version: unspecified
          Hardware: All
               URL: https://ask.libreoffice.org/en/question/319335/how-to-
                    convert-non-standard-text-to-date/
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mikekaganski at hotmail.com
                CC: erack at redhat.com

There is an inconsistency how different spreadsheet functions treat their
locale-specific arguments.

TEXT [1] takes cell's locale when processing its 'Format' argument, and thus
'=TEXT(0.1;"0 000.000")' will give different results depending if cell's number
format is set to en-US or ru-RU: "0 000.100" vs "0 000. 000".

DATEVALUE [2], OTOH, does not take cell's number format locale into account
when parsing its argument, so that '=DATEVALUE("03 Jun 2019")' will give the
same result irrespective of the cell's settings - it would be a date when
program's locale is en-US; and it will be Err:502 when program is set to ru-RU
locale.

These should be made consistent, depending on the cell's locale to allow
flexibility.

[1]
https://help.libreoffice.org/7.2/en-US/text/scalc/01/04060110.html?DbPAR=CALC#bm_id3147132
[2]
https://help.libreoffice.org/latest/en-US/text/scalc/01/func_datevalue.html?DbPAR=CALC

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210723/7e7678d5/attachment.htm>


More information about the Libreoffice-bugs mailing list