Bug report #12003

crssync sensitive to locale behavior while installing

Added by Vasiliy Molostov over 5 years ago. Updated about 2 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Build/Install
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

Description

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 :)


Related issues

Duplicated by QGIS Application - Bug report #18938: DEB package qgis-providers segfaults at installation on n... Closed 2018-05-11

History

#1 Updated by Giovanni Manghi over 5 years ago

  • Category set to Build/Install

#2 Updated by Giovanni Manghi over 3 years ago

  • Easy fix? set to No
  • Regression? set to No

#3 Updated by Jürgen Fischer about 2 years ago

  • Duplicated by Bug report #18938: DEB package qgis-providers segfaults at installation on non-English locales added

#4 Updated by Jürgen Fischer about 2 years ago

  • Resolution set to fixed/implemented
  • Description updated (diff)
  • Status changed from Open to Closed

Also available in: Atom PDF