display of decimal numbers in table view

Issue #231 resolved
Jens-Uwe Grooß created an issue

The decimal numbers in the table view are displayed with "," instead of "." This is confusing since the input needs to be with '.' otherwise the number is not accepted.

This problem seems only to appear in the LINUX version

Comments (7)

  1. Reimar Bauer

    This must be solved that only Python fornatted numbers are shown, not any other possible number encoding. Likly this is POSIX, C, or some US.UTF8. We have to fixate this, so it is Independent from a Users locale config.

  2. Joern Ungermann

    I disagree a bit. Using the numerical format of the current locale would be advantegeous for a user and we have no compatability issues as this happens solely in the user interface, i.e. we get no problems with file exchange. Files need to be fixed to US format, but I see no strong reason to deny a user his accustomed locale. I mean if he uses a localized operating system, he probably does so for a reason? (I, for example, avoid German OS).

    So I see two options: a) Fix everything to US locale, however that may work b) Use QT for the relevant numerical conversion routines (which are probably all over the UI).

    I think the complexity of both solutions might be explored before we decide on a solution?

  3. Joern Ungermann

    Looking into that a bit, I guess the problem is that in PyQt4, the value of the table is first converted into a python string and then into a float, which bypasses any kind of automagic Qt4 might offer. That could be easily corrected. I beliebe that in PyQT5 this behaves consistently. Can somebody check that?

  4. Joern Ungermann

    Could you please reopen this issue with minor and 1.6 deadline? We need to review the whole code-base for further instances. I just fixed the most glaring ones and maybe even all, but I didn't do a thorough review.

  5. Log in to comment