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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.6.0, 5.7.0
    • Fix Version/s: 5.6.3
    • Labels:
      None
    • Environment:
      Mac OS X 10.11.1 El Capitan
      Apple LLVM version 7.0.0
    • Platform/s:
      macOS
    • Commits:
      f6eb570c7dee2ec92383607c614db91f31804707 49d3bb005889b9fb5a06d6aadac23ebd5b2f9f2d

      Description

      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 "日本".

        Attachments

        1. t.cpp
          0.9 kB

          Issue Links

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

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes