You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by bu...@apache.org on 2003/10/10 11:15:24 UTC

DO NOT REPLY [Bug 4137] - regexp match gets different results on different platforms

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4137>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4137

regexp match gets different results on different platforms





------- Additional Comments From son@sparc.spb.su  2003-10-10 09:15 -------
I think the problem is that on Linux/Unix line.separator=="\n",
but on Windows it is "\r\n".  Thus on Linux we consider string which we match as to line text (and last line matches to regexp), but on Window this is one 
line text and this line diesn't match to regexp.

To correct test we should use
String input = System.getProperty("line.separator") + "window.location.href=";

So, I would say that the test is incorrect.

---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org