Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1273

Windows: pyside2-rcc adds additional newlines when stdout is redirected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.14.2
    • Tooling
    • None
    • Windows
    • Windows
    • a54294369d8bc7b98ed7d9d8ecf61774eec29782 (qt/qtbase/dev) ee8454670ddfdec3a73664d7fca068cb3dd92b0e (qt/qtbase/5.15)

      When generating a resource file with redirecting the output to a text file, e.g.

      c:\Python38\Scripts\pyside2-rcc.exe ressources.qrc > rcc38.py

      the output file has after each code line an additional empty line (see rcc38.py). Therefore the generated code isn't valid Python code. Called with Python37 and PySide2 5.13.2 the output is correct (see rcc37.py).

      Problem doesn't exist if I use -o <filename> instead, but this is no option, because it also happen in eric6 IDE.

      Tobias

        1. ressources.qrc
          0.1 kB
        2. rcc38.py
          3 kB
        3. rcc38_with_o_option.py
          3 kB
        4. rcc37.py
          3 kB
        5. altn.png
          altn.png
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            t.rzepka Tobias Rzepka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes