[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-patch] Patch reported as garbage unfairly?

From: Reuben Thomas
Subject: [bug-patch] Patch reported as garbage unfairly?
Date: Wed, 16 Mar 2011 18:58:20 +0000

I have a patch starting:

diff .\clue.c D:\ÏÂÔØÇø\clue-7\clue.c
< int clue_do(clue_State *L, const char *code)
> void clue_do(clue_State *L, const char *code)

which patch disdains:

Hmm...  I can't seem to find a patch in there anywhere.
patch: **** Only garbage was found in the patch input.

I tried converting the patch to Unix line endings (then saw this
wasn't necessary according to the documentation). I tried converting
the backslashes to forward slashes. I tried removing the top-bit-set
characters (I'm guessing this is a Chinese multi-byte encoding, since
I got the patch from a Chinese collaborator). The documentation also
mentions that binary files should work, so I guess it's not the odd
characters anyway. I found myself, when I tried looking at the source,
in intuit_diff_type, which is about 500 lines long.

file says the patch is diff output, but file is superficial...

I attach the patch file in case it's not obvious what I'm doing wrong.
I'd like to know whether I should've had more of a clue from the
documentation, or whether I'm just being dumb.

I'm using patch for testing (latest git).


Attachment: patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]