GNOME Bugzilla – Bug 130172
Text Function When Opening Excel File
Last modified: 2004-12-22 21:47:04 UTC
When opening, and recalculating, an excel or OOCalc spreadsheet which has a text formula as '=text(A1,0)', for example, Gnumeric doesn't recognise the format and the formula needs to be changed to '=text(A1,"0")' (double quotes around the format). Gnumeric seems to only accept the format text part of the function in double quotes. Excel and OOCalc both accept formats as 0 (without quotes) as well. They both also treat 0.00 as 0 in the format. I have tested this on Gnumeric version 1.2.2. To display 2 decimal places in excel and OOCalc, the format part needs to be in double quotes eg '=text(A1,"0.00")' in which case the file opens ok in Gnumeric. Thanks
We're explicitly checking for a string second arg. I guess we can just drop the test.
Thank you This was a fantastic bug It pointed out a whole class of errors. The patch itself was pretty trivial, but the the larger issue is fairly low level and changes the implict conversions we perform on arguments. I'll attach the patch here, but don't want to apply it to the stable branch just yet. Let me test it for a while more. Things look good on our unit tests, but I'd like to see one release in the wild before backporting. Please remind me in one month.
Created attachment 23135 [details] [review] Adjust string args to not do implicit conversion to int(0)
Patch is in 1.3.0 but I've decided not to backport. It's just too central.