Debug messages don't completely convert paths to local directory separator

Bug #682633 reported by Matthew Gates on 2010-11-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Low
Alexander Wolf

Bug Description

When the path of the config.ini file and similar are printed in the log, the values sometimes contain mixed directory separators. For example:

Config file is: "C:\Users\jhuft\AppData\Roaming\Stellarium/config.ini"

The last directory separator is non-native '/' where as the rest are native.

When showing paths to the user in any way, QDir::toNativeSeparators should be used to fix this. When reading paths, QDir::fromNativeSeparators should be used to read from a native format to the internal format (QT always uses '/' internally).

Related branches

Changed in stellarium:
assignee: nobody → Matthew Gates (matthew-porpoisehead)
importance: Undecided → Low
milestone: none → 1.0.0
status: New → Confirmed
Changed in stellarium:
assignee: Matthew Gates (matthew-porpoisehead) → Alexander Wolf (alexwolf)
milestone: 1.0.0 → 0.12.2
status: Confirmed → Fix Committed
Alexander Wolf (alexwolf) wrote :

A fix has been committed as revision 6139 of the trunk branch in Stellarium's Bazaar repository at Launchpad:
http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/6139

Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers