Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55896

QFileSystemWatcher can't watch paths with some Unicode characters on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.6.3
    • 5.6.0, 5.7.0
    • None
    • Mac OS X 10.11.1 El Capitan
      Apple LLVM version 7.0.0
    • macOS
    • f6eb570c7dee2ec92383607c614db91f31804707 49d3bb005889b9fb5a06d6aadac23ebd5b2f9f2d

      The attached program will try to create a file given as argv[1] and watch for modifications on it, then it will open it in write mode and wait for qt's notification that the file is modified.

      How to reproduce:

      • mkdir /tmp/cafe
      • ./t /tmp/cafe/foo
      • mkdir /tmp/café
      • ./t /tmp/café/foo

      In both cases addPath will return success, but in the latter, we are never notified and the program waits forever.

      The bug occurs only if the watched file is in a path that contains some unicode characters, not when the file name itself contains them.

      About the unicode characters, it seems that the bug only manifest with composed unicode characters, so with words like "café" (I heard the é is a ´ and a 'e' on mac), korean characters, but it works with japanese characters like "日本".

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            erikv Erik Verbruggen
            blastrock Philippe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes