GtkTextBuffer stripping carriage returns?



I've got a GtkTextBuffer, and I'm pasting some text that contains a
carriage return in it (e.g., \r\n). I know for sure that there's an \r\n
in it because when I copy the text from the buffer into a hex editor, it
shows the \r\n is there.

However when I get the text from the buffer (gtk_text_buffer_get_text),
the \r isn't there... just the \n.

Any idea why this might be?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]