On Thu, Nov 15, 2012 at 2:13 PM,  <[email protected]> wrote:
> 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?

You're using Windows OS and the file descriptors are set in _O_TEXT
mode instead of _O_BINARY mode.  The hex editor is using _O_BINARY
mode on the file descriptor and therefore the \r is retained.

--
Earnie
-- https://sites.google.com/site/earnieboyd
_______________________________________________
gtk-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to