George Lober wrote:

Micha Nelissen wrote:

George Lober wrote:

Darius Blaszijk wrote:

Maybe the patch is too old ?



It's patched against SVN, so I guess not ;)


Applying the patch in the lcl directory, the output of 'patch --dry-run < listview.diff' under Windows is:

--------------------------
|Index: lcl/interfaces/win32/win32wscustomlistview.inc
|===================================================================



Try applying from the lazarus directory. The path mentioned starts with lcl, so applying within lcl is not going to work. I also usually use option -p0 to patch, so it fixes path separators.


Tried doing it from the Lazarus directory but it doesn't work either. This is the result under Linux:

[EMAIL PROTECTED] ~/lazarus $ patch --dry-run -p0 < listview.diff
patching file lcl/comctrls.pp
Hunk #1 FAILED at 950.
1 out of 1 hunk FAILED -- saving rejects to file lcl/comctrls.pp.rej
patching file lcl/interfaces/win32/win32wscustomlistview.inc
Hunk #1 FAILED at 373.
Hunk #2 FAILED at 577.
Hunk #3 FAILED at 598.
3 out of 3 hunks FAILED -- saving rejects to file lcl/interfaces/win32/win32wscustomlistview.inc.rej


Micha you are right, under Windows doing it from the Lazarus directory does work. The trick was using the -p0 option. A small detail, but I think it's something that's worth adding to wiki. Why the patching doesn't work in Linux remains a mystery.

George

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to