Martin Vermeer a écrit :
On Wed, 2006-04-12 at 00:18 +0200, Philippe Charpentier wrote:
Hi,
Under my Fedora Core 5 box, I encounter the following surprising bug with the qt frontend : if your LANG shell is not English (en_EN for example) you cannot enter a decimal number in a dialog box!!
Here is two examples:
suppose your LANG shell is fr_FR (the same occurs with de_DE, es_ES, it_IT...); open lyx (1.4.0 or 1.4.1) and create a new document. - Try to change the top margin to 2.5 cm; close the dialog box clicking the OK button and reopen it: the top margin is 2 cm!! - Insert a vertical space of 1.5 cm and click OK or Apply : you obtain a 1 cm vertical space!!

If the LANG is set to en_EN this bug does not appear!!

I also notice that this bug does not exist with the xforms frontend.

Is it a qt bug, a lyx bug or a FC5 bug? It does not exist in Fedora Core 3 or Mandrake 10.1.

Is it a bug at all? Doesn't French use a decimal comma?
No (it does not depend on fr, but on the fact that the LANG variable is not en_EN). For example, in the lyx file the top margin is written
\topmargin 2.5cm
but if you edit the file in lyx and open the document properties and click OK, then the corresponding line is automatically change into
\topmargin 2cm
and the same occur with vertical spaces.
I test it changing my LANG variable, and the only one which does not produce the bug is the english one. That is I am obliged to force the LANG variable to be en_EN to be able to use lyx.
It seems this behaviour is that of lexical_cast (boost). It should work
OK in all locales
But this is not the case... and it is related to the qt frontend under FC5 (as I said this bug does not happen with the xform frontend in FC5 neither with the qt frontend in FC3 or Mandrake 10.1).

PhC

Reply via email to