https://bugs.documentfoundation.org/show_bug.cgi?id=164995
Bug ID: 164995
Summary: INFO("version") returns a value for "release", instead
of expected failure, even using en-US locale
Product: LibreOffice
Version: 24.2.0.0 alpha0+
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
In Calc, check the formula
=INFO("version")
The INFO spreadsheet function is documented [1] to only take a few values of
the type, and only untranslated ones. There is no "version" type known to the
function (according to the documentation); and the result is identical to what
is returned for "release".
The problem happens in the call to ScCellKeywordTranslator::transKeyword from
ScInterpreter::ScInfo; there is a *French* translation of "release" for the
ocInfo opcode. The match is done so that it matches even if just the opcode
matches, and even more, the initial match is done so that it's impossible to
not have a match.
The values are defined in sc/source/core/tool/cellkeywords.inl, only for French
and Hungarian.
Eike: do you think it should be made more strict, even if we allow this
deviation for some languages?
[1]
https://help.libreoffice.org/latest/en-US/text/scalc/01/04060104.html?DbPAR=CALC#bm_id3691824
--
You are receiving this mail because:
You are the assignee for the bug.