bugunrtf - Bugs: bug #34675, Outputs ~20% of input file's text

 
 

bug #34675: Outputs ~20% of input file's text

Submitter:  Charles Atkinson <catkin>
Submitted:  Fri 28 Oct 2011 04:46:24 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 16 Dec 2014 01:02:44 PM UTC, comment #2: 

Thanks for reporting this. Fixed by http://hg.savannah.gnu.org/hgweb/unrtf/rev/949b18a62669

Jean-Francois Dockes <medoc>
Group administrator
Fri 28 Oct 2011 05:35:13 PM UTC, comment #1: 

Re-tested using version 0.21.2.  Similar output but now with two unexpected "\pard"s:

docoll@CW8vDS:~$ /tmp/unrtf/bin/unrtf -P /tmp/unrtf/lib/unrtf --text /tmp/sample.rtf
###  Translation from RTF performed by UnRTF, version 0.21.2
### font table contains 15 fonts total

TITLE: Property:Description:Title
### creation date: 2 July 2010 15:37
### revision date:
### last printed:
### comments: StarWriter

-----------------
Letters
\pardFAMC -
\pardICITI - 
Staff Update -
Budget update -
Meeting with Toine -




Charles Atkinson <catkin>
Fri 28 Oct 2011 04:46:24 PM UTC, original submission:  

Version: 0.20.4

./unrtf --text /tmp/sample.rtf           ### Translation from RTF ###
Translation from RTF performed by UnRTF, version 0.20.3
### document uses ANSI character set
### font table contains 15 fonts total

TITLE: Property:Description:Title
### creation date: 2 July 2010 15:37
### revision date:
### last printed:
### comments: StarWriter

-----------------
Letters
?
FAMC -
?
ICITI -
Staff Update -
Budget update -
Meeting with Toine -

When sample.rtf is opened with OOo Writer it shows:

Body;HTML;Letters
FAMC - Email to be written [snip]
ICITI - Email will be written [snip]
Staff Update - Proposed that [snip]
Budget update - BCC budget to be [snip]
Meeting with Toine -Toine presented ideas [snip]

Yes -- the "Body;HTML;" is unexpected.

sample.rtf is attached.  I do not know how it was created but the file command reports it as RTF:

file /tmp/sample.rtf
/tmp/sample.rtf: Rich Text Format data, version 1, ANSI

Output is similarly truncated when converting to HTML.  unrtf 0.19.2 behaves the same.

This instance of unrtf 0.20.4 was built on Debian Squeeze 64 bit with gcc 4:4.4.5 and libc6 2.11.2 by:

cd /tmp \
    && wget http://ftp.gnu.org/gnu/unrtf/unrtf_0.20.4.tar.gz \
    && mkdir unrtf \
    && cd unrtf_0.20.4\
    && ./configure --prefix=/tmp/unrtf \
    && make \
    && make install

Charles Atkinson <catkin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #24233:  sample.rtf added by catkin (19KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by medoc (Posted a comment)
  • -email is unavailable- added by catkin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-16 medoc StatusNone Fixed
        Open/ClosedOpen Closed
    2011-10-28 catkin Attached File- Added sample.rtf, #24233

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code