Bug report #12003
crssync sensitive to locale behavior while installing
|Affected QGIS version:||2.6.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20206|
I have discovered on my install of Ubuntu, with QGIS from Debian repos, both stable&testing that /usr/lib/qgis/crssync application uses conversion which is sensitive to locale settings while updating /usr/share/qgis/resources/srs.db (usually this happens while installing/upgrading)
With a default value of LANG=ru_RU crssync updates srs.db with float digit values containing decimal separator (which is ',' comma for LANG=ru_RU), so many CRS params becomes unusable for qgis (e.g. become '23,9,-80,1,141,3' instead of correct '23.9,-80.1,141.3')
I am not sure that textual param options (CRS definitions) should be converted this way before updating text fields in srs.db
As a result any CRS params with dots in text become unusable and qgis rendering shows wrong results.
A workaround to this bug is the manual update of srs.db just after every install/update via command 'LANG=C /usr/lib/qgis/crssync' which overrides locale settings to C(posix) temporarily.
It is very difficult to repeat this manual update every time it happens... Please, remove this strange decimal convertion, or direct install script to use LANG=C for crssync application. Thanks many many :)