Wireshark-bugs: [Wireshark-bugs] [Bug 12117] 'prefs_register_directory_preference' returns wrong

Date: Wed, 24 Feb 2016 04:20:14 +0000

Comment # 3 on bug 12117 from
It appears that Qt is "helpfully" canonicalizing strings entered by the user to
use / rather than \ as a path separator, even on Windows:

    http://doc.qt.io/qt-4.8/qdir.html

"Qt uses "/" as a universal directory separator in the same way that "/" is
used as a path separator in URLs. If you always use "/" as a directory
separator, Qt will translate your paths to conform to the underlying operating
system."

Fortunately, Qt also provides a big hammer to use on those "helpfully
canonicalized" path names, QDir::toNativeSeparators()

    http://doc.qt.io/qt-4.8/qdir.html#toNativeSeparators

to pound them back into native form.


You are receiving this mail because:
  • You are watching all bug changes.