OS X: Fix the file system watcher ignoring unicode paths #4424
authorJocelyn Turcotte <jturcotte@woboq.com>
Mon, 8 Feb 2016 12:27:44 +0000 (13:27 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Mon, 8 Feb 2016 12:30:08 +0000 (13:30 +0100)
Add a missing string normalization when fetching the path
from the file system event.

src/gui/folderwatcher_mac.cpp

index 9a165387fd064f73d130574a0f3fb42b02c8f646..ada7f106440fde261ca14a03963678fdd126f951 100644 (file)
@@ -63,7 +63,7 @@ static void callback(
         qstring.resize(pathLength);
         CFStringGetCharacters(path, CFRangeMake(0, pathLength), reinterpret_cast<UniChar *>(qstring.data()));
 
-        paths.append(qstring);
+        paths.append(qstring.normalized(QString::NormalizationForm_C));
     }
 
     reinterpret_cast<FolderWatcherPrivate*>(clientCallBackInfo)->doNotifyParent(paths);