Patch & freemail

From: Sir Basic <phoenix_at_freemail.hu>
Date: Mon Oct 25 2004 - 10:41:25 CEST

Hi!

Sorry for spamming, it seems my mail service provider
(freemail.hu) is corrupt and ruins the attached texts :(
Furthermore it ruins the message body also with unecessary
newlines. Let's try the gzip.

However, the head of the attached text is good but just
extended with rubbish.

  Attila

>
> Hi Attila!
>
> It looks like your patch was corrupted. Would you mind
> resending it?
>
> Thanks again!
> Dom
>
> --- Sir Basic <phoenix@freemail.hu> wrote:
>
> > Hi!
> >
> > I've discovered some points in "buildFont" function
> > that can
> > be bugs. The [-1] element of "fontFile" could be
> > accessed in
> > some cases. If the extension is ".font" then the
> > postfix
> > change seems improper. Please check the attached
> > file for
> > modifications.
> >
> > Meanwhile I've profiled the startup several times.
> > It seems
> > the overall running time of "buildFont" is not as
> > long as
> > I've thought before (something like 6%, proportional
> > to the
> > number of fonts installed). But please note that the
> > function spends one half of its time with those
> > string
> > operations. The nice-looking rows
> > metricFile.ucs4_str()[ffs - 3] = 'a';
> > metricFile.ucs4_str()[ffs - 2] = 'f';
> > metricFile.ucs4_str()[ffs - 1] = 'm';
> > cost 37% of execution time of the whole function
> > because of
> > the repeated call on "ucs4_str()".
> >
> > Attila> --- xap_UnixFontManager~.cpp 2004-10-22
> > 13:28:50.000000000 +0200
> > +++ xap_UnixFontManager.cpp 2004-10-22
> > 13:28:59.000000000 +0200
> > @@ -111,12 +111,15 @@
> > // TODO: We should follow symlinks.
> > metricFile = reinterpret_cast<char*>(fontFile);
> > size_t ffs = metricFile.size();
> > - if (ffs < 4 || (fontFile[ffs - 4] != '.' &&
> > fontFile[ffs - 5] != '.'))
> > + if ( ! ( (ffs >= 4 && fontFile[ffs - 4] == '.') ||
> > (ffs >= 5 && fontFile[ffs - 5] == '.') ) )
> > return NULL;
> >
> > // handle '.font'
> > if (fontFile[ffs - 5] == '.')
> > + {
> > metricFile =
> > UT_UTF8String(metricFile.ucs4_str().substr(0,
> > metricFile.size() - 1));
> > + --ffs;
> > + }
> >
> > metricFile.ucs4_str()[ffs - 3] = 'a';
> > metricFile.ucs4_str()[ffs - 2] = 'f';
> >
> ¦§Wê&#65533;Xµ&#65533; .û&#65533;2¬QBæè&#65533;g7¨½t³t5`IÔ&#65533;î*¡nQ± ê_åDX ÀÜcØÿÄT0à²
> > &#65533;¸t&#65533;Ñt&#65533;&#65533;&#65533;²z&#65533;¸×}*d×ɼË9»
> > æÛâz&#65533;ÏàÒiÎv@¹võØ&#65533;&#65533;Õ+ôÃPÐ
>
J©4Ô£~*4æ½åNls³EQ4Ö»Þ­Ð_éôaÃý&#65533;æBq5䶤T¼ÙH¥´L{&#65533;&#65533;a¨L$Ewß%×+þÍ&#65533;&#65533;yèiÒç&}Á·p=ʬ&#65533;{´ß U¾:åî0¦:lV­6&#65533;N&#65533;¼^¬¥
>
>
>
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
>

Received on Mon Oct 25 10:40:34 2004

This archive was generated by hypermail 2.1.8 : Mon Oct 25 2004 - 10:40:34 CEST