g_data_input_stream_read_upto_async returns NULL when it should return ""
Submitted by Shaun McCance
Link to original bug (#692101)
Description
If the next character in the stream is one of the stop chars, g_data_input_stream_read_upto_finish will return NULL, seemingly with no way to distinguish this from hitting the end of the stream. In contract, g_data_input_stream_read_upto will return "" in the exact same case, which is what I would expect. Attaching a test program.