View Issue Details

IDProjectCategoryView StatusLast Update
0001741DraftBugpublic2014-09-27 19:50
Reportermghansen256 Assigned Toyorik  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
PlatformKubuntuOSLinuxOS Version14.04
Summary0001741: Draft move shows coordinates with "." but expects entry with "," for de_DE.UTF-8 locale
DescriptionWhen using the Draft->Move command on a part object, the coordinates are displayed as "3.14" when moving the mouse across the scene and checking out snapping points. Moving from snap point to snap point works fine. However, when I enter coordinates manually, I have to enter them with a comma "3,14", because the "." is ignored.

The problem appears when LC_NUMERIC="de_DE.UTF-8" and LANG="en_US.UTF-8". When LC_NUMERIC="en_US.UTF-8", the problem does not occur. I guess the code converting the numbers to strings does is not locale-aware, while the code parsing the strings is locale-aware.
Additional InformationMy locale settings:

declare -x LANG="en_US.UTF-8"
declare -x LANGUAGE=""
declare -x LC_ADDRESS="de_DE.UTF-8"
declare -x LC_IDENTIFICATION="de_DE.UTF-8"
declare -x LC_MEASUREMENT="de_DE.UTF-8"
declare -x LC_MONETARY="de_DE.UTF-8"
declare -x LC_NAME="de_DE.UTF-8"
declare -x LC_NUMERIC="de_DE.UTF-8"
declare -x LC_PAPER="de_DE.UTF-8"
declare -x LC_TELEPHONE="de_DE.UTF-8"
declare -x LC_TIME="de_DE.UTF-8"

OS: Ubuntu 14.04.1 LTS
Word size: 64-bit
Version: 0.15.3904 (Git)
Branch: master
Hash: 8fcc3e94728280781391d0bb1e1ea776a7f5ca48
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
TagsNo tags attached.
FreeCAD Information

Activities

yorik

2014-09-11 19:28

administrator   ~0005093

Last edited: 2014-09-11 19:28

Hm yes it's possibly the reason of the problem indeed. I'll have a look ASAP

Related Changesets

FreeCAD: master 463b5d4a

2014-09-27 21:23:59

yorik

Details Diff
Draft: display coordinates using the current locale's decimal separator - fixes 0001741 Affected Issues
0001741
mod - src/Mod/Draft/DraftGui.py Diff File

Issue History

Date Modified Username Field Change
2014-09-11 19:21 mghansen256 New Issue
2014-09-11 19:28 yorik Note Added: 0005093
2014-09-11 19:28 yorik Assigned To => yorik
2014-09-11 19:28 yorik Status new => assigned
2014-09-11 19:28 yorik Note Edited: 0005093
2014-09-27 19:50 yorik Changeset attached => FreeCAD Master master 463b5d4a
2014-09-27 19:50 yorik Status assigned => closed
2014-09-27 19:50 yorik Resolution open => fixed