From 7dfc9c3fb8cd9f5875c4bfba7adb2165a2baeb56 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 24 Mar 2009 00:05:32 +0000 Subject: t1 subset bug that affected Macs; from Melissa O'Neill, pdftex mail 21 March, 2009 13:45:12 git-svn-id: svn://tug.org/texlive/trunk@12505 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/ChangeLog | 7 +++++++ Build/source/texk/dvipsk/writet1.c | 20 ++++++-------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 1e33c552c32..4e2cbdc126e 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,10 @@ +2009-03-24 Karl Berry + + * writet1.c (t1_flush_cs): t1_lenIV >= 0, not + t1_lenIV > 0, to fix subset problems on Macs. Found by Melissa + O'Neill. Reported on ntg-pdftex@ntg.nl and pdftex@tug.org, + 21 March, 2009 13:45:12. + 2009-02-16 Karl Berry * dvips.texi (Config file paper sizes): document. diff --git a/Build/source/texk/dvipsk/writet1.c b/Build/source/texk/dvipsk/writet1.c index 41ef48d4df8..a91efa0a4be 100644 --- a/Build/source/texk/dvipsk/writet1.c +++ b/Build/source/texk/dvipsk/writet1.c @@ -1,27 +1,19 @@ /* -Copyright (c) 1996-2005 Han The Thanh, +$Id$ +Copyright 1996-2005, 2009 Han The Thanh, -This file is part of pdfTeX. - -pdfTeX is free software; you can redistribute it and/or modify +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. -pdfTeX is distributed in the hope that it will be useful, +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with pdfTeX; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -$Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/writet1.c#24 $ -*/ - -static const char perforce_id[] = - "$Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/writet1.c#24 $"; +along with this program. If not, see . */ #ifdef pdfTeX /* writet1 used with pdfTeX */ #include "ptexlib.h" @@ -1546,7 +1538,7 @@ static void t1_flush_cs(boolean is_subr) cr = 4330; cs_len = 0; return_cs = xtalloc(t1_lenIV + 1, byte); - if (t1_lenIV > 0) { + if (t1_lenIV >= 0) { for (cs_len = 0, r = return_cs; cs_len < t1_lenIV; cs_len++, r++) *r = cencrypt(0x00, &cr); *r = cencrypt(CS_RETURN, &cr); -- cgit v1.2.3