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

 
 

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

Submitted by:  Charles Atkinson <catkin>
Submitted on:  Fri 28 Oct 2011 04:46:24 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by catkin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 Oct 2011 04:46:24 PM UTCcatkinAttached File-=>Added sample.rtf, #24233

    Back to the top


    Powered by Savane 3.1-cleanup