Hi Ocke,

On Monday, 2007-07-30 10:12:04 +0200, Ocke Janssen wrote:

> >Just out of curiosity: what is an illegal byte? And why does it make
> >fail a patch?
> Please have a look at 
> http://jfreereport.cvs.sourceforge.net/jfreereport/flute/source/org/w3c/flute/parser/Parser.java?revision=1.4&view=markup
> line 31

Well, ok, that's just a Latin1 encoded
0xE9    é    "é"         LATIN SMALL LETTER E WITH ACUTE

The real problem seems to be a dumb patch tool that converts the
encoding of a diff's unified context to the encoding of the shell's
locale, ensuring that the diff doesn't match the original file anymore.
The dumb diff tool on the same platform also generates a file with the
diff context converted to the shell's locale. Useless crap.

Needless to say that GNU patch is still able to apply the crappy diff
with a "Hunk #1 succeeded at 31 with fuzz 1." The other platform's dumb
patch tool on the other hand isn't even able to apply the diff the dumb
diff tool of the very same platform generated. What a mess.

  Eike

-- 
 OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
 SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't send personal mail to this [EMAIL PROTECTED] account, which I use 
for
 mailing lists only and don't read from outside Sun. Use [EMAIL PROTECTED] 
Thanks.

Attachment: pgpm4I7EIbjVV.pgp
Description: PGP signature

Reply via email to