http://bugs.winehq.org/show_bug.cgi?id=3066
Summary: RTF writer of richedit20: Only 8KiB are saved Product: Wine Version: CVS Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-gui AssignedTo: wine-bugs@winehq.org ReportedBy: burnus@gmx.de
I have the problem with exporting RTF files using richedit: They are all cropped at 8 KiB (= 8192 bytes) - at least using the program Diamond2 (even if only a final '}' is missing).
Grepping through the sources I see: dlls/riched20/editstr.h:#define STREAMOUT_FONTTBL_SIZE 8192 and in the writer.c file: static BOOL ME_StreamOutRTFText(ME_TextEditor *editor, WCHAR *text, LONG nChars) { char buffer[STREAMOUT_BUFFER_SIZE]; [...] if (pos >= STREAMOUT_BUFFER_SIZE - 11) { if (!ME_StreamOutMove(editor, buffer, pos)) return FALSE;
Seemingly, ME_StreamOutMove fails to flush the buffer, but why? Anyone having an insight or an idea how to test this?