--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: dia: dia --export to svg adds junk to end
- From: Lars Wirzenius <liw@qvarnlabs.com>
- Date: Mon, 23 Jan 2017 18:25:20 +0200
- Message-id: <148518872084.17534.7992378548111231816.reportbug@localhost>
Package: dia
Version: 0.97.3+git20160930-5
Severity: normal
Dear Maintainer,
I have a .dia file that I need to convert to SVG which I do from the
command line:
dia --export=/dev/stdout --filter=svg auth.dia
This adds the following line to the end of the output:
auth.dia --> /dev/stdout
This breaks using the output in many SVG-capable programs. I can
easily filter it out but it'd be nice to not have to.
Thanks.
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dia depends on:
ii dia-common 0.97.3+git20160930-5
ii libart-2.0-2 2.3.21-2
ii libatk1.0-0 2.22.0-1
ii libc6 2.24-8
ii libcairo2 1.14.8-1
ii libfontconfig1 2.11.0-6.7
ii libfreetype6 2.6.3-3+b1
ii libgdk-pixbuf2.0-0 2.36.3-1
ii libglib2.0-0 2.50.2-2
ii libgtk2.0-0 2.24.31-1
ii libpango-1.0-0 1.40.3-3
ii libpangocairo-1.0-0 1.40.3-3
ii libpangoft2-1.0-0 1.40.3-3
ii libpng16-16 1.6.26-6
ii libpython2.7 2.7.13-1
ii libxml2 2.9.4+dfsg1-2.1
ii libxslt1.1 1.1.29-2
ii zlib1g 1:1.2.8.dfsg-4
Versions of packages dia recommends:
ii dia-shapes 0.6.0-3
ii gsfonts-x11 0.24
dia suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
----
Closing, not really a bug - more a wart
---------- Forwarded message ----------
Date: Wed, 19 Jul 2017 09:02:48 +0300
From: Lars Wirzenius
To: Tomas Pospisek
Cc: 852330@bugs.debian.org
Subject: Re: dia: dia --export to svg adds junk to end
On Fri, Jul 14, 2017 at 10:13:37PM +0200, Tomas Pospisek wrote:
The line "auth.dia --> /dev/stdout" goes to STDERR though. So if you do:
dia --export=/dev/stdout --filter=svg auth.dia > outfile.svg
then everything works as it should.
It seems that's not what happened when I filed the bug, however. But
if it works now, good.
* some info about the processing of the file for the user goes to STDERR
This bit is, however, if not a bug at least a wart in the program.
stderr is not a place for random info to be shown to the user, but for
error messages. The proper place for "foo.dia -> output" messagges is
either /dev/null (unless a verbose mode is requested), /dev/tty (for
interactive users), or a log file. In my opinion.
Can you agree with me? Can we close this bug?
You can close the bug.
--- End Message ---