Dirk wrote:
Grrr. this doesn't work. I tried different methods, but the :crlf has no influence. Perhaps I'm doing something stupidly wrong. Simply converting in several chunks is also not possible, since we could split up in between a CR and LF. I think the only solution is to run an external utility. But which one? I only know of dos2unix, but this is not installed on a windows system. I also tried to call

perl -p -e 's/\r\n/\n/g'   /inputfile/ > /outputfile/

but interestingly this doesn't work either. Perhaps I'm doing something really stupid here.

Nothing stupid, your code snippet above will work correctly on *nix. The problem is that on Windows, it treats "\n" as "\r\n" by default (unless binmode is specified), so the regex will never match.

toby

_______________________________________________
vss2svn-users mailing list
Project homepage:
http://www.pumacode.org/projects/vss2svn/
Subscribe/Unsubscribe/Admin:
http://lists.pumacode.org/mailman/listinfo/vss2svn-users-lists.pumacode.org
Mailing list web interface (with searchable archives):
http://dir.gmane.org/gmane.comp.version-control.subversion.vss2svn.user

Reply via email to