Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#223 closed defect (fixed)

QDir::cleanPath() broken

Reported by: rudi Owned by:
Priority: major Milestone: Qt 4.7
Component: QtCore Version:
Severity: high Keywords:


Currently QDir::cleanPath() strips trailing separators from root directories. This due to a #ifdef thatwas not present in 4.6.

Attachments (1)

qdir.diff (573 bytes) - added by rudi 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by rudi

Attachment: qdir.diff added


comment:1 Changed 9 years ago by rudi

Note that this bug also affects QMake.

comment:2 Changed 9 years ago by Dmitry A. Kuminov

Resolution: fixed
Status: newclosed

Thanks. Committed in r883.

Just for my info, could you please tell how did this affect QMake? I didn't notice any problems.

comment:3 Changed 9 years ago by rudi

The problem arises when QMake is requested to create output directories using MakefileGenerator::mkdir(). Due to QDir::cd() behaving weird with this bug, subdirs got created in the root instead of relative to the current dir. This happened when building QtCreator?. I didn't see it with Qt itself.

Last edited 9 years ago by rudi (previous) (diff)
Note: See TracTickets for help on using tickets.