Apache OpenOffice (AOO) Bugzilla – Issue 96700
(regression) Insert - File does not respect encoding of HTML file
Last modified: 2013-08-07 14:44:20 UTC
Repro: 1. Save attached .htm somewhere locally, start Writer. 2. Insert-File, navigate to .htm, Insert - you get junk. 3. File-Open opens the file just fine - Russian is readable.
Created attachment 58376 [details] file to repro the problem.
This is regression - version 2.4.0 inserted the file with correct encoding.
@MBA: please have a look
Oliver, please take over. As it is a regression (I take that for granted without checking it myself), we should try to fix it soon.
->mst: Your change in rev. 1.48 in swhtml.cxx is the reason. ParseMetaOptions is only called for new documents. Encoding is detected within this function.
hmm, yes, it seems i got confused by this convoluted piece of code and how it depends on an undocumented side effect... should have looked more closely. only sw is affected because the code that sets the encoding is copy-pasted in sc and dbaccess, despite being in the base class in sfx2... sigh. fixed in cws sw301bf05
Great job, thanks a ton! Will 3.0.1 get this fix too?
let's see if we can get this into 3.0.1
I just love this attitude!
please verify
Verified in CWS sw301bf05.
Checked in build OOO300m15 and DEV300m38.