runtime
runtime copied to clipboard
string IndexOf work differently for windows and linux
.net core 2.1
windows 10 x64:
"some \n string".IndexOf("\n") | result 5
"some \r\n string".IndexOf("\n") | result 6
"some \r\n string".IndexOf('\n') | result 6
"some \n string".IndexOf('\n') | result 5
linux ubuntu x64:
"some \n string".IndexOf("\n") | result 5
"some \r\n string".IndexOf("\n") |-> result -1
"some \r\n string".IndexOf('\n') | result 6
"some \n string".IndexOf('\n') | result 5
move issue to corefx