Created attachment 152735 [details] ddbb Steps to reproduce: 1. Open attached document 2. Migrate it to firebird -> negative Decimal are incorrectly migrated Reproduced in Version: 6.4.0.0.alpha0+ Build ID: 44df407f63bc20c402b513e9e38470517a775317 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US Calc: threaded The behaviour is incorrect since it was introduced in https://cgit.freedesktop.org/libreoffice/core/commit/?id=6039d2463b4cc503b963811b3b1471de3291ee09
Changing https://opengrok.libreoffice.org/xref/core/dbaccess/source/filter/hsqldb/rowinputbinary.cxx?r=2e26ef34#53 from int shifted_in = (bytes[i] & (1 << (7 - j))) ? 1 : 0; to int shifted_in = (bytes[i] & (1 << (7 - j))) ? 0 : 1; would make the negative numbers to be displayed correctly... we would just need to append the '-' sign at the beginning
Closing as dupe of 126268 *** This bug has been marked as a duplicate of bug 126268 ***