Bug#275959: dia --export-to-format= does nothing, hides errors

Roland Stigge Roland Stigge <stigge@antcom.de>, 275959-quiet@bugs.debian.org
Mon, 11 Oct 2004 11:58:26 +0200


Hi,

thanks for your report.

On Mon, 2004-10-11 at 10:51, Tommi Virtanen wrote:
> Dia's --export-to-format= option does nothing; it still tries to deduce
> the format from the filename.
>
> $ dia --export-to-format=png --export=overview.dia.png.tmp overview.dia
> 
> ** (dia-python:22618): WARNING **: No attribute type ((nil)) or no 
> data((nil)) in this attribute
> 
> ** (dia-python:22618): WARNING **: Can't color_convert in 
> non-interactive app (w/o color_init())
> [... repeats a lot, I will file a separate bug on this ...]
> ** (dia-python:22618): WARNING **: Can't color_convert in 
> non-interactive app (w/o color_init())
> 
> ** (dia-python:22618): WARNING **: Can't color_convert in 
> non-interactive app (w/o color_init())
> Warning: Could not save file:
> overview.dia.png.tmp
> Image type 'tmp' is not supported
> overview.dia --> overview.dia.png.tmp
> $ echo $?
> 0
> $ ls -l overview.dia.png.tmp
> -rw-r--r--  1 tv tv 0 Oct 11 11:45 overview.dia.png.tmp

I can't reproduce this. For me, it works fine:

$ dia --export-to-format=png --export=Diagram1.dia.png.tmp Diagram1.dia
Diagram1.dia --> Diagram1.dia.png.tmp
$  file Diagram1.dia.png.tmp
Diagram1.dia.png.tmp: PNG image data, 56 x 45, 8-bit/color RGB, non-interlaced
$

> Also, even if dia aborts with error, it exits with status 0. This is
> bad.

This certainly doesn't conform to Unix conventions but is not
necessarily a bug. Feel free to discuss this with upstream at
dia-list@gnome.org or send in patches for improvement.

Thanks.

bye,
  Roland