On 07.12.2010, at 16:50, Albrecht Schlosser wrote:

> ... But (just looking
> at Fl_Text_Buffer::outputfile()) there seems to be the same problem
> if we write in text format (line 1559: if (r != n) ...).

Just tested this. There's no problem with this whether we write in
binary or text format. Although Windows adds the cr's in text mode,
the written byte count doesn't reflect this (otherwise it would be
greater than the buffer size). Thus, it would be okay to change this
one back to 'w', as it was in FLTK 1.1. This way, we would both read
and write in text mode.

Comment: IMHO this is okay, since this is a _text_ widget, and we
honor the platform-specific file format. The drawback is that the
output is *unconditionally* written in 'DOS' format (cr/lf), whether
or not the input was with or w/o cr ('DOS' or 'Unix' format). The good
part is that this was the same in FLTK 1.1, so that everything else
would be incompatible with the previous version.

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to