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

Convert QFileInfo to QDir/QFile

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.0.1
    • Core: I/O
    • None
    • Qt5 under Linux, the dialog open is Qt dialog (with native dialog it work, but not with Qt dialog).

    Description

      Hello, this code:

              if(!source.isReadable() || !source.isExecutable() || !source.exists() || !source.isDir())
      	//no error
              QDir tempDir(source.absoluteFilePath());
              if(!tempDir.isReadable() || !tempDir.exists())
              //error
      

      Bug under linux when under KDE I put: ééé as name for folder. And I can't select as folder. Under Qt it show don't displayable char (the ? char).
      This is specific tu problem to convert QFileInfo to QDir/QFile (yes QFile is affected too). If I have this conversion, that's allow Qt to bypass the encoding problem and allow the copy of file with encoding problem.
      Keep the wrong char into the QString is a way too.
      This bug is only into specific case (see env).

      My request: do the creator: QFile(QFileInfo) QDir(QFileInfo), by using file pointer, not QString to prevent problem.

      Attachments

        1. t.png
          t.png
          18 kB
        2. test-recursive-list.png
          test-recursive-list.png
          35 kB
        3. test-recursive-list.tar.xz
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            alpha_one_x86 BRULE Herman
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes