Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-5637

Gcc include paths not found by project explorer plugin when using some non-english locales

    XMLWordPrintable

Details

    • 4453554cf400060c7297b9bed6f222296b2e3459

    Description

      It is actually duplicate of QTCREATORBUG-4370, but I thought I should attract some attention now that root of problem is found.

      Initial problem is, on non-standard (i.e. non-english) locales gcc search paths are not found. So, no code-completion for stl etc.

      Root of problem lies in the fact that gcc uses l10n for some output, which is parsed by qt creator. Namely, line.startsWith("#include") in gccHeaderPathes from plugins/projectexplorer/gcctoolchain.cpp does not work for some locales.

      The most direct approach to solving this problem is adding LC_ALL=C to environment when executing gcc. I conclude that same is true for every other call to gcc in project explorer. Proposed patch attached (ugly hack, really, but it works with minimal set of changes)

      Attachments

        1. qt-creator-2.3.1-gcc-search-path.patch
          0.7 kB
          Lierdakil Manindo
        2. qtcreator-search-path.diff
          0.6 kB
          Lierdakil Manindo

        Issue Links

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

          Activity

            People

              hunger Tobias Hunger
              lierdakil Lierdakil Manindo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes