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

lupdate redirects all output to standard error instead of only error output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.4
    • 4.7.0
    • Tools: Linguist
    • None
    • windows 7 64bit
      cmd
    • fe3b07884cf2a9c02a5dc3a8fc7aebcd42a5ee91

    Description

      The lupdate program redirects all output to standarderror(stderr) instead of only errors

      eks ( 2>NUL redirects stderr to null )

      lupdate -version gives "lupdate version 4.7.0"
      lupdate -version 2>NUL gives no output, meaning version info is redirected to stderr
      lrelease -version 2>NUL gives "lrelease version 4.7.0" meaing version info is sent to stdout

      full example:
      command: lupdate xmlfiles.pro

      raw output:

      C:/Qt/4.7.0/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not implemented
      Updating 'XmlFiles_da.ts'...
      Found 1020 source text(s) (0 new and 1020 already existing)

      output with standard output piped into null:

      C:/Qt/4.7.0/mkspecs/features/debug_and_release.prf(66):Function 'eval' is not implemented
      Updating 'XmlFiles_da.ts'...
      Found 1020 source text(s) (0 new and 1020 already existing)

      output with standard error piped into null:

      (nothing!)

      expected output when piping standard error to null:

      Updating 'XmlFiles_da.ts'...
      Found 1020 source text(s) (0 new and 1020 already existing)

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            jens_lund_jensen Jens Lund Jensen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes