Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1488

Command.stdoutPath does not handle binary output correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 1.14.0
    • General
    • None
    • Linux 4.15.0-58-generic #64-Ubuntu x86_64 GNU/Linux
      Qbs 1.13.1

    • Linux/X11
    • 817a292690ccdea7bae185319beb22ea653db946 (qbs/qbs/1.14)

    Description

      Rules trying to output binary data via the stdoutPath variable on the Command object does not get the correct output.

       

      A minimal example using cat is provided in the attachment:

      • myfile.bin is a 1024 byte file of random binary data
      • myfile.txt is a short text file
      • build.qbs take have one rule which attempts to concat both files with itself twice and send the output to stdoutPath.
      • Only the text file is concatenated properly. The binary output file is way to small (only 218 bytes)

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            hdhauk Halvor Haukvik
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes