Apache OpenOffice (AOO) Bugzilla – Issue 110216
TXT files with DOS lineends cannot be opened in headless mode and via API
Last modified: 2010-05-12 13:58:07 UTC
When trying to open TXT files with DOS lineends (see attached sample) on a UNIX-like system, then OOo doesn't open the file when in headless mode. It's no problem when using the UI. Here the dialog for the filter selection is shown and you can choose the appropriate options.
Created attachment 68412 [details] ASCII file with DOS lineends
The problem affects also a normal office as well. It is not possible to load such document without InteractionHandler in the MediaDescriptor per API. Adjusting priority, since the document can not be opened at all in some scenarios based on scripted OOo.
A simple script that allows to reproduce the problem in the normal office: REM ***** BASIC ***** Sub Main Dim noArgs() oDesktop = CreateUnoService( "com.sun.star.frame.Desktop" ) oDesktop.loadComponentFromURL( "file:///<path to the file>/text.txt", "_blank", 0, noArgs() ) End Sub
The fix is ready.
changed summary
Fixed in cws sw321bf01.
mav->mru: Please verify the issue.
Verified in CWS sw321bf01.
Checked in DEV300m77 and OOO320m17.