Subject: | sqlt-diagram produces garbage output in utf-8 environment |
% sqlt-diagram -d PostgreSQL schema.sql >dia.png && file dia.png
dia.png: data
% LC_ALL=C sqlt-diagram -d PostgreSQL schema.sql >dia.png && file dia.png
dia.png: PNG image data, 603 x 359, 4-bit colormap, interlaced
% echo $LANG
en_US.UTF-8
% echo $PERL_UNICODE
SAL
So: sqlt-diagram generates garbage output if my environment says that my
text data should be UTF-8. This is probably caused by treating binary
data as text, e.g. a missing 'binmode' before output.