[poppler] Re: Alternate Patch for CharCodeToUnicode.cc,1.3,1.4

Albert Astals Cid aacid at kde.org
Fri Jan 20 13:22:48 PST 2006


A Divendres 20 Gener 2006 20:56, vàreu escriure:
> At 01:54 PM 1/18/2006, Albert Astals Cid wrote:
> >poppler/CharCodeToUnicode.cc: Fix check for length that was not
> >         having into account that there could be \n or \r in tokens an
> > that those do not have to be took into account. Fixes
> >         http://bugs.kde.org/show_bug.cgi?id=120310
>
>          In case you weren't aware, I've been keeping Derek
> (Noonberg, Xpdf author) appraised of the changes to the core Xpdf
> codebase that are being made by the Poppler team - so that there
> isn't any duplication of effort.
>
>          I sent this one to Derek and he responded with an alternate
>
> (simpler) patch:
> >That's the hard way to fix it.  Here's a better patch.
> >
> >- Derek
> >
> >
> >Index: PSTokenizer.cc
> >===================================================================
> >RCS file: /home/derekn/src/cvs/xpdf/PSTokenizer.cc,v
> >retrieving revision 1.4
> >diff -c -r1.4 PSTokenizer.cc
> >*** PSTokenizer.cc      20 Mar 2003 23:37:00 -0000      1.4
> >--- PSTokenizer.cc      20 Jan 2006 19:13:21 -0000
> >***************
> >*** 95,101 ****
> >     } else if (c == '<') {
> >       while ((c = lookChar()) != EOF) {
> >         getChar();
> >!       if (i < size - 1) {
> >         buf[i++] = c;
> >         }
> >         if (c == '>') {
> >--- 95,101 ----
> >     } else if (c == '<') {
> >       while ((c = lookChar()) != EOF) {
> >         getChar();
> >!       if (i < size - 1 && specialChars[c] != 1) {
> >         buf[i++] = c;
> >         }
> >         if (c == '>') {
>
>          Enjoy!

Thanks, i'll test and probably commit his patch, can i assume we have his 
permision to add it to poppler?

Is he aware that the patches are not yours but from poppler and so he can NOT 
add our (or at least mine) code to xpdf?

Albert

>
>
> Leonard
>
> ---------------------------------------------------------------------------
> Leonard Rosenthol                            <mailto:leonardr at pdfsages.com>
> Chief Technical Officer                      <http://www.pdfsages.com>
> PDF Sages, Inc.                              215-938-7080 (voice)
>                                               215-938-0880 (fax)

		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


More information about the poppler mailing list