Yes, win32text definitely breaks a lot of tools including transplant and mq.
One possibility is to add a patch option to decide how strict should be line
endings handling. In strict mode (default current mode), line endings are
preserved. Otherwise, line endings are sampled from target file, then target and
patch ones are unified to the sampled value. If mixed line endings are found in
target, just bail out.
What do you think ?
|