Package: autodia
Version: 2.14-1
Severity: normal

Dear Maintainer,

Here is how to reproduce the bug:

$ wget https://raw.github.com/fgouget/winetestbot/master/ddl/winetestbot.sql
# Remove the 'CREATE DATABASE' line, see bug 680756.
$ autodia -l SQL winetestbot.sql

In the resulting autodia.out.dia file the class name for the 'PendingPatchSets' 
table is:
      <dia:attribute name="name">
        <dia:string>#PendingPatchSets
#</dia:string>

That means the end-of-line linefeed got included in the class name, which is 
confirmed by looking at the class properties in the dia editor. I suspect the 
following patch would fix this:

--- SQL.pm.orig 2012-07-08 16:59:16.842461110 +0200
+++ SQL.pm      2012-07-08 16:58:42.062455297 +0200
@@ -80,6 +80,7 @@
        if ($fileline =~ 
/\s*\[?(\S+?)\]?\s+\[?($pattern)\]?\s*([\w\s\(\)]*),?\s*/i) {
          $matched = 1;
          my ($field,$field_type,$extra_info) = ($1,$2,$3);
+         chomp $field;
          if ($extra_info =~ /^\s*(\([\d\s]+\))/) {
            $field_type .= $1;
          }



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages autodia depends on:
ii  libtemplate-perl  2.22-0.1+b2
ii  perl              5.14.2-12

autodia recommends no packages.

Versions of packages autodia suggests:
pn  libgraphviz-perl  <none>

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to