GNOME Bugzilla – Bug 337215
copy'n'paste between different instances fails with localized floating-point numbers
Last modified: 2006-04-04 21:59:03 UTC
Please describe the problem: Under a non-C locale with different floating point representation (in my case: French locale with numbers like "1,5" instead of "1.5"), copy and pasting a number with a fractional part between two different Gnumeric instances (launched separately, not with Ctrl-N) fails. Steps to reproduce: 1. Launch two Gnumeric instances under a locale different than C: $ LC_NUMERIC=fr_FR gnumeric & [3] 9361 $ LC_NUMERIC=fr_FR gnumeric & [4] 9367 2. Type an integer number (e.g. "1") and a floating-point number (e.g. "1.5") in two cells of one Gnumeric instance. 3. Copy and paste the two cells to the other Gnumeric instance. Actual results: The integer is correctly pasted ("1"). The floating-point number is not and prints an error in the console: ** (gnumeric:9361): CRITICAL **: cell_set_value: assertion `v != NULL' failed Expected results: Does this happen every time? Other information: Gnumeric 1.6.3, Mandriva Cooker package.
Confirmed. The problem seems to be the receiving end. Note, that setting just LC_NUMERIC is actually invalid. You must set at least LC_MONETARY too, but that is not the cause here.
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.
Thanks for your responsivity, and the quick fix! :) LC_NUMERIC was just to provide a quick way to test it for non-French people. Of course on my box these are the default locale values.