Package: graphviz
Version: 2.2.1-1sarge1
Severity: minor

When using the (documented) option 'charset = iso-8859-1', I observe
that neato does not set the proper XML encoding when it produces
SVG. Hence the output file is rejected as not well-formed.

% more sample.dot
graph network {
  
  charset = "iso-8859-1";
  label = "Réseau";
 
}

% neato -Tsvg sample.dot > sample.svg

% more sample.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
                              ^^^^^
                              Wrong 

% xmllint --noout sample.svg
sample.svg:11: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xE9 0x73 0x65 0x61
<text text-anchor="middle" x="85" y="259">Réseau</text>
                                           ^



-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-k7
Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

Versions of packages graphviz depends on:
ii  libc6              2.3.2.ds1-22          GNU C Library: Shared libraries an
ii  libexpat1          1.95.8-3              XML parsing C library - runtime li
ii  libfontconfig1     2.3.1-2               generic font configuration library
ii  libfreetype6       2.1.7-2.4             FreeType 2 font engine, shared lib
ii  libice6            4.3.0.dfsg.1-14sarge1 Inter-Client Exchange library
ii  libjpeg62          6b-10                 The Independent JPEG Group's JPEG 
ii  libpng12-0         1.2.8rel-1            PNG library - runtime
ii  libsm6             4.3.0.dfsg.1-14sarge1 X Window System Session Management
ii  libx11-6           4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii  libxaw7            4.3.0.dfsg.1-14sarge1 X Athena widget set library
ii  libxext6           4.3.0.dfsg.1-14sarge1 X Window System miscellaneous exte
ii  libxmu6            4.3.0.dfsg.1-14sarge1 X Window System miscellaneous util
ii  libxpm4            4.3.0.dfsg.1-14sarge1 X pixmap library
ii  libxt6             4.3.0.dfsg.1-14sarge1 X Toolkit Intrinsics
ii  tcl8.4             8.4.9-1               Tcl (the Tool Command Language) v8
ii  tk8.4              8.4.9-1               Tk toolkit for Tcl and X11, v8.4 -
ii  xlibs              4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) configu
ii  zlib1g             1:1.2.2-4.sarge.2     compression library - runtime

-- no debconf information

Reply via email to