diff -urN ooo_1.1.1_src.orig/sw/source/filter/ww8/wrtw8nds.cxx ooo_1.1.1_src/sw/source/filter/ww8/wrtw8nds.cxx --- ooo_1.1.1_src.orig/sw/source/filter/ww8/wrtw8nds.cxx Fri Feb 13 19:57:46 2004 +++ ooo_1.1.1_src/sw/source/filter/ww8/wrtw8nds.cxx Fri Feb 13 20:42:43 2004 @@ -220,6 +220,10 @@ #include #endif +#ifndef _PVER_HXX +#include // GetLongLanguage +#endif + #ifndef _WRTWW8_HXX #include "wrtww8.hxx" #endif @@ -1449,9 +1453,14 @@ bool bTxtAtr = aAttrIter.IsTxtAttr( nAktPos ); nOpenAttrWithRange += aAttrIter.OutAttrWithRange( nAktPos ); + // PJ: This fixes file write for Czech and Slovak version temporary if( !bTxtAtr ) - rWW8Wrt.OutSwString( aStr, nAktPos, nNextAttr - nAktPos, - bUnicode, eChrSet ); + if (ProductVersion::GetLongLanguage().ToInt32() == 0x405 || ProductVersion::GetLongLanguage().ToInt32() == 0x41b) + rWW8Wrt.OutSwString( aStr, nAktPos, nNextAttr - nAktPos, + bUnicode, RTL_TEXTENCODING_MS_1250 ); + else + rWW8Wrt.OutSwString( aStr, nAktPos, nNextAttr - nAktPos, + bUnicode, eChrSet ); // Am Zeilenende werden die Attribute bis ueber das CR aufgezogen. // Ausnahme: Fussnoten am Zeilenende diff -urN ooo_1.1.1_src.orig/sw/source/filter/ww8/ww8par.cxx ooo_1.1.1_src/sw/source/filter/ww8/ww8par.cxx --- ooo_1.1.1_src.orig/sw/source/filter/ww8/ww8par.cxx Fri Feb 13 19:57:46 2004 +++ ooo_1.1.1_src/sw/source/filter/ww8/ww8par.cxx Fri Feb 13 20:45:07 2004 @@ -249,6 +249,10 @@ #include #endif +#ifndef _PVER_HXX +#include // GetLongLanguage +#endif + #ifndef _WW8PAR2_HXX #include "ww8par2.hxx" // class WW8RStyle, class WW8AnchorPara #endif @@ -1736,7 +1740,11 @@ rtl_TextToUnicodeConverter hConverter = 0; if (!bIsUnicode || bVer67) - hConverter = rtl_createTextToUnicodeConverter(eSrcCharSet); + // PJ: This fixes file read for Czech and Slovak version temporary + if (ProductVersion::GetLongLanguage().ToInt32() == 0x405 || ProductVersion::GetLongLanguage().ToInt32() == 0x41b) + hConverter = rtl_createTextToUnicodeConverter(RTL_TEXTENCODING_MS_1250); + else + hConverter = rtl_createTextToUnicodeConverter(eSrcCharSet); // read the stream data BYTE nBCode;