Fixes mono/mono#14724
This may need to be reverted if customers are relying on the existing behavior, but we can cross that bridge when we come to it.
The larger issue of incompatibility with .NET Core should be addressed later.
Commit migrated from https://github.com/mono/mono/commit/
6c5bbbd757344fa1a39922917c85091ee35dbe1e
g_ptr_array_add (array, g_string_free (str, FALSE));
str = g_string_new ("");
}
- } else if (c == '\\'){
+ } else if (c == '\\' && quote_char == '\"'){
escaped = TRUE;
} else
g_string_append_c (str, c);