Bug#247198: marked as done (/var/lib/defoma/scripts/pango.defoma: missing escaping of regex)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 09 May 2004 11:48:12 -0700


Your message dated Sun, 09 May 2004 14:32:04 -0400
with message-id <E1BMt5o-0000KI-00@newraff.debian.org>
and subject line Bug#247198: fixed in pango1.0 1.2.5-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 3 May 2004 19:48:07 +0000
>From flavio.stanchina@tin.it Mon May 03 12:48:06 2004
Return-path: <flavio.stanchina@tin.it>
Received: from vsmtp1b.tin.it (vsmtp1.tin.it) [212.216.176.141] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BKjQ6-00046x-00; Mon, 03 May 2004 12:48:06 -0700
Received: from [192.168.0.2] (82.50.91.106) by vsmtp1.tin.it (7.0.027)
        id 4087242E0025D722; Mon, 3 May 2004 21:47:42 +0200
Message-ID: <4087242E0025D722@vsmtp1.tin.it> (added by postmaster@virgilio.it)
Content-Type: multipart/mixed; boundary="===============1040078718=="
MIME-Version: 1.0
From: Flavio Stanchina <flavio.stanchina@tin.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /var/lib/defoma/scripts/pango.defoma: missing escaping of regex
Bcc: Flavio Stanchina <flavio.stanchina@tin.it>
X-Mailer: reportbug 2.56
Date: Mon, 03 May 2004 21:47:38 +0200
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

This is a multi-part MIME message sent by reportbug.

--===============1040078718==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: libpango1.0-common
Version: 1.2.5-4
Severity: normal
Tags: patch

I'm packaging a few fonts from http://fonts.tom7.com/ and the hints
file generated by defoma-hints contains
  Foundry = [ Divide By Zero ] Fonts

When I install the fonts, I get this error:
  W: In pango::xfont('term'): Invalid [] range "t-i" in regex;
  marked by <-- HERE in m/[-prog.bot-i <-- HERE so8859-1/ at
  /var/lib/defoma/scripts/pango.defoma line 91.

The attached patch apparently solves this problem, but all the Perl I
know I have learned in fixing this bug so double-check for correctness.

-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Kernel: Linux 2.6.5-athlon
Locale: LANG=C, LC_CTYPE=C

Versions of packages libpango1.0-common depends on:
ii  debconf                     1.4.22       Debian configuration management sy
ii  defoma                      0.11.7       Debian Font Manager -- automatic f
ii  fontconfig                  2.2.2-2      generic font configuration library
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libfontconfig1              2.2.2-2      generic font configuration library
ii  libfreetype6                2.1.7-2      FreeType 2 font engine, shared lib
ii  libglib2.0-0                2.2.3-1      The GLib library of C routines
ii  libpango1.0-0               1.2.5-4      Layout and rendering of internatio
ii  libx11-6                    4.3.0-7      X Window System protocol client li
ii  libxft2                     2.1.2-6      FreeType-based font drawing librar
ii  libxrender1                 0.8.3-7      X Rendering Extension client libra
ii  xlibs                       4.3.0-7      X Window System client libraries m
ii  zlib1g                      1:1.2.1-5    compression library - runtime

-- debconf information:
  libpango1.0-common/saved_aliases_file: 
* libpango1.0-common/suggested_fonts: 
* libpango1.0-common/notice_xft2_and_fontconfig: 
* libpango1.0-common/use_defoma: true
  libpango1.0-common/other_fonts: 
  libpango1.0-common/generated_aliases_file: 

--===============1040078718==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="libpango-defoma-escape.patch"

--- pango.defoma-orig	2003-07-27 23:50:15.000000000 +0200
+++ pango.defoma	2004-05-03 21:08:40.000000000 +0200
@@ -72,6 +72,7 @@
 
 	foreach my $i (@cache) {
 		my $font = $Id->{1}->[$i];
+		my $tmp;
 		$font =~ s/_/ /g;
 		$xe = get_xlfd_element ($font);
 		$xlfd = generate_xlfd ($xe);
@@ -88,7 +89,8 @@
 			push (@nnbn_xlfd, $xlfd) if (!grep (/$xe->{Foundry}-$xe->{Family}-$xe->{Encoding}/, @nnbn_xlfd));
 			next;
 		}
-		push (@nnnn_xlfd, $xlfd) if (!grep (/$xe->{Foundry}-$xe->{Family}-$xe->{Encoding}/, @nnnn_xlfd));
+		$tmp = "$xe->{Foundry}-$xe->{Family}-$xe->{Encoding}";
+		push (@nnnn_xlfd, $xlfd) if (!grep (/\Q$tmp/, @nnnn_xlfd));
 	}
 	return \(@nnnn_xlfd, @innn_xlfd, @nnbn_xlfd, @inbn_xlfd);
 }

--===============1040078718==--

---------------------------------------
Received: (at 247198-close) by bugs.debian.org; 9 May 2004 18:38:02 +0000
>From katie@ftp-master.debian.org Sun May 09 11:38:02 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BMtBa-0007pn-00; Sun, 09 May 2004 11:38:02 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BMt5o-0000KI-00; Sun, 09 May 2004 14:32:04 -0400
From: Akira TAGOH <tagoh@debian.org>
To: 247198-close@bugs.debian.org
X-Katie: $Revision: 1.49 $
Subject: Bug#247198: fixed in pango1.0 1.2.5-5
Message-Id: <E1BMt5o-0000KI-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 09 May 2004 14:32:04 -0400
Delivered-To: 247198-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: pango1.0
Source-Version: 1.2.5-5

We believe that the bug you reported is fixed in the latest version of
pango1.0, which is due to be installed in the Debian FTP archive:

libpango1.0-0_1.2.5-5_i386.deb
  to pool/main/p/pango1.0/libpango1.0-0_1.2.5-5_i386.deb
libpango1.0-common_1.2.5-5_i386.deb
  to pool/main/p/pango1.0/libpango1.0-common_1.2.5-5_i386.deb
libpango1.0-dbg_1.2.5-5_i386.deb
  to pool/main/p/pango1.0/libpango1.0-dbg_1.2.5-5_i386.deb
libpango1.0-dev_1.2.5-5_i386.deb
  to pool/main/p/pango1.0/libpango1.0-dev_1.2.5-5_i386.deb
libpango1.0-doc_1.2.5-5_all.deb
  to pool/main/p/pango1.0/libpango1.0-doc_1.2.5-5_all.deb
libpango1.0-udeb_1.2.5-5_i386.udeb
  to pool/main/p/pango1.0/libpango1.0-udeb_1.2.5-5_i386.udeb
pango1.0_1.2.5-5.diff.gz
  to pool/main/p/pango1.0/pango1.0_1.2.5-5.diff.gz
pango1.0_1.2.5-5.dsc
  to pool/main/p/pango1.0/pango1.0_1.2.5-5.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 247198@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Akira TAGOH <tagoh@debian.org> (supplier of updated pango1.0 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 10 May 2004 02:34:54 +0900
Source: pango1.0
Binary: libpango1.0-dev libpango1.0-0 libpango1.0-doc libpango1.0-udeb libpango1.0-dbg libpango1.0-common
Architecture: source i386 all
Version: 1.2.5-5
Distribution: unstable
Urgency: low
Maintainer: Akira TAGOH <tagoh@debian.org>
Changed-By: Akira TAGOH <tagoh@debian.org>
Description: 
 libpango1.0-0 - Layout and rendering of internationalized text
 libpango1.0-common - Modules and configuration files for the Pango
 libpango1.0-dbg - The Pango library and debugging symbols
 libpango1.0-dev - Development files for the Pango
 libpango1.0-doc - Documentation files for the Pango
 libpango1.0-udeb - Layout and rendering of internationalized text (udeb)
Closes: 246079 247198
Changes: 
 pango1.0 (1.2.5-5) unstable; urgency=low
 .
   * Akira TAGOH <tagoh@debian.org>
   + debian/pango.defoma:
     - fixed to avoid the regex fails due to unquoted strings.
       Thanks to Flavio Stanchina <flavio.stanchina@tin.it>
       (closes: Bug#247198)
   + po/tr.po:
     - added Turkish translation. (closes: Bug#246079)
       Thanks to Gürkan Aslan <gurkan@iaslan.com>
Files: 
 d9839464aabb18afa7e7d84405388154 1674 libs optional pango1.0_1.2.5-5.dsc
 882d343d13b40b6f77f66065115002e1 30360 libs optional pango1.0_1.2.5-5.diff.gz
 b0f10aeb873bc1a73d5ac4aba6269442 121236 doc optional libpango1.0-doc_1.2.5-5_all.deb
 03b55906d663002734fa650c95f69f18 324670 libs optional libpango1.0-0_1.2.5-5_i386.deb
 300fbd9bbb542d5b3feb457ae4b3c55f 16946 misc optional libpango1.0-common_1.2.5-5_i386.deb
 8e334312b53890a55e504be36f3f58b4 425532 libdevel optional libpango1.0-dev_1.2.5-5_i386.deb
 5c2ae862c868b1d3f62ae469bb286eb1 1095824 libdevel extra libpango1.0-dbg_1.2.5-5_i386.deb
 c6623188b27051e295715ae431ecb0a6 822438 debian-installer optional libpango1.0-udeb_1.2.5-5_i386.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAnnIj/PbdRTnM8McRArA7AJ0Th+qwsL3gcY3NBQfFvGrHj94x3ACeP7xP
L9/2p5ktHTLMr/fHC4Hf0yQ=
=FyLb
-----END PGP SIGNATURE-----