I'm not sure what you are doing wrong, but I just tried this utility and as long as the .patch file is converted to DOS mode it worked fine for me. If the mode of the file is not converted, I ended up with an assert when running the patch utility.
Here is what I did:
- Unzip Ice-3.3.0.zip
- Converted the patch file to dos mode.
- In the Ice-3.3.0 directory:
Code:
C:\Users\matthew\test\Ice-3.3.0>..\patch\bin\patch.exe -p0 < ..\protobuf.patch
patching file ./cpp/demo/Ice/protobuf/Client.cpp
patching file ./cpp/demo/Ice/protobuf/config.client
patching file ./cpp/demo/Ice/protobuf/config.server
patching file ./cpp/demo/Ice/protobuf/.depend
patching file ./cpp/demo/Ice/protobuf/Hello.ice
patching file ./cpp/demo/Ice/protobuf/HelloI.cpp
patching file ./cpp/demo/Ice/protobuf/HelloI.h
patching file ./cpp/demo/Ice/protobuf/Makefile
patching file ./cpp/demo/Ice/protobuf/Makefile.mak
patching file ./cpp/demo/Ice/protobuf/Person.proto
patching file ./cpp/demo/Ice/protobuf/README
patching file ./cpp/demo/Ice/protobuf/Server.cpp
patching file ./cpp/include/Slice/CPlusPlusUtil.h
patching file ./cpp/include/Slice/JavaUtil.h
patching file ./cpp/src/Slice/CPlusPlusUtil.cpp
patching file ./cpp/src/Slice/JavaUtil.cpp
patching file ./cpp/src/Slice/PythonUtil.cpp
patching file ./cpp/src/slice2cpp/Gen.cpp
patching file ./java/demo/Ice/protobuf/ant/ProtocTask.java
patching file ./java/demo/Ice/protobuf/build.xml
patching file ./java/demo/Ice/protobuf/Client.java
patching file ./java/demo/Ice/protobuf/config.client
patching file ./java/demo/Ice/protobuf/config.server
patching file ./java/demo/Ice/protobuf/Hello.ice
patching file ./java/demo/Ice/protobuf/HelloI.java
patching file ./java/demo/Ice/protobuf/Person.proto
patching file ./java/demo/Ice/protobuf/README
patching file ./java/demo/Ice/protobuf/Server.java
patching file ./py/demo/Ice/protobuf/Client.py
patching file ./py/demo/Ice/protobuf/config.client
patching file ./py/demo/Ice/protobuf/config.server
patching file ./py/demo/Ice/protobuf/Hello.ice
patching file ./py/demo/Ice/protobuf/Person.proto
patching file ./py/demo/Ice/protobuf/README
patching file ./py/demo/Ice/protobuf/Server.py
patching file ./py/modules/IcePy/Init.cpp
patching file ./py/modules/IcePy/Types.cpp
patching file ./py/modules/IcePy/Types.h