Issue 102584 - editing an empty file as ascii in foreign language results in a corrupted file
Summary: editing an empty file as ascii in foreign language results in a corrupted file
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 3.0.1
Hardware: Unknown Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: writerneedsconfirm
QA Contact: issues@sw
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2009-06-08 08:22 UTC by ittayd
Modified: 2009-07-02 23:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
save as text (not encoded) (7.32 KB, application/vnd.oasis.opendocument.text)
2009-06-08 08:57 UTC, ittayd
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ittayd 2009-06-08 08:22:15 UTC
* touch a file /tmp/foo.doc
* ooffice /tmp/foo.doc
  * a dialog for the ascii filter is opened, select ASCII (the default) and
hebrew as language
* in writer, edit in hebrew and save. openoffice doesn't complain about anything
* close, exit
* cat /tmp/foo.doc

result: the file is full of question marks

the problem is that writer does not complain and saves the file. in my personal
case, i worked on the file for several hours then closed writer only to discover
(after sending the file so someone and getting feedback from him) that all my
work was lost.
Comment 1 eric.savary 2009-06-08 08:34:45 UTC
Do you see also the question marks in OOo?
Which Hebrew encoding did you choose?
May that be that your terminal is not localized to display Hebrew?

Worksforme on Windows.
Comment 2 ittayd 2009-06-08 08:40:32 UTC
after i re-open the doc, yes. the question marks are not due to missing fonts or
different encoding they are the genuine '?' character. 
Comment 3 eric.savary 2009-06-08 08:49:51 UTC
Please try the current 3.1 version from our site and attach a test document
(odt) which contents shows the problem while exporting to txt.
Comment 4 ittayd 2009-06-08 08:57:30 UTC
Created attachment 62843 [details]
save as text (not encoded)
Comment 5 eric.savary 2009-07-02 23:06:25 UTC
OOo saves in the encoding of the import.
It doesn't make sense to open a text file with ASCII as filter when you intend
to write in Hebrew.
Selecting one of the Hebrew or UTF8 encodings works fine.
The "Language" field is only there to set a default SpellChecking language.
Comment 6 eric.savary 2009-07-02 23:06:36 UTC
closed