summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2021-12-02 12:37:07 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-12-09 12:06:49 +0100
commit47aabde053a1472dc32770da29d68c8de5bd7919 (patch)
tree88526deaaa76a5583cd06abe48c6a44e0a65c41e /officecfg
parentc1916d3ab8f764e465f889334050ce7c863576b3 (diff)
Make the tdf#97983 changes to BASIC optional
If you want to keep the string to floating point conversion semantics in BASIC as they were in LibreOffice 6, you can either set the LIBREOFFICE6FLOATINGPOINTMODE environment variable to some non-empty value, or set the org.openoffice.Office.Scripting/Basic/Compatibility/ UseLibreOffice6FloatingPointConversion flag in the Expert Configuration. (Or use a registry modification file with that effect.) Adapt the relevant unit test accordingly. Thanks to Mike Kaganski for showing how to access the setting in the LibreOffice registry from Basic. Change-Id: I13d6d5d834e1bb81ef8df489db2b1da79f01dfc5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125756 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Scripting.xcs26
1 files changed, 25 insertions, 1 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Scripting.xcs b/officecfg/registry/schema/org/openoffice/Office/Scripting.xcs
index fa9aacd52dfe..ca8374fa3cb8 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Scripting.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Scripting.xcs
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?> <!-- -*- fill-column: 100 -*- -->
<!--
* This file is part of the LibreOffice project.
*
@@ -39,5 +39,29 @@
<desc>Lists the registered Scripting Framework runtimes.</desc>
</info>
</set>
+ <group oor:name="Basic">
+ <info>
+ <desc>Contains settings for the Basic interpreter.</desc>
+ </info>
+ <group oor:name="Compatibility">
+ <info>
+ <desc>Contains settings for the compatibility with previous version of this software or
+ with other software products.
+ </desc>
+ </info>
+ <prop oor:name="UseLibreOffice6FloatingPointConversion" oor:type="xs:boolean" oor:nillable="false">
+ <info>
+ <!-- Yes, this description refers to a bug report and is technobabble. That is
+ intentional. This property is to be changed only by people who know what they are
+ doing.
+ -->
+ <desc>Whether conversion from strings to floating-point numbers in Basic should behave
+ as in LibreOffice 6, before the fix to tdf#97983.
+ </desc>
+ </info>
+ <value>false</value>
+ </prop>
+ </group>
+ </group>
</component>
</oor:component-schema>