[Libreoffice-bugs] [Bug 134490] New: Input number scanner silently accepts and skips repeated '-' and '/' characters before a number

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 3 22:46:07 UTC 2020


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

            Bug ID: 134490
           Summary: Input number scanner silently accepts and skips
                    repeated '-' and '/' characters before a number
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: framework
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: erack at redhat.com

The number scanner used for field inputs, Calc cell input and various locale
dependent numeric or date+time inputs, has an odd behaviour in that it accepts
and skips '-' and '/' characters that immediately precede a number (without
ignoring a leading plus or minus sign or any other meaningful string like month
name though). This leads to the wrong acceptance of

--1 => -1
---1 => -1
+-1 => 1
+--1 => 1

which all should be text strings instead and not numbers.

A fallout from

    commit b00fc9462d26083b6d09f72ea44abb1e11546b63
    CommitDate: Wed Sep 15 11:54:10 2010 +0200

        sc-date-fix.diff: Parse 'june-2007' as June 1 2007 in en-US locales

that implemented the intention wrongly.

-- 
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/20200703/c51e9178/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list