| 1 |
Index: source/filter/ww8/wrtw8sty.cxx
|
| 2 |
===================================================================
|
| 3 |
RCS file: /cvs/sw/sw/source/filter/ww8/wrtw8sty.cxx,v
|
| 4 |
retrieving revision 1.49.44.2
|
| 5 |
diff -u -r1.49.44.2 wrtw8sty.cxx
|
| 6 |
--- openoffice.org.orig/sw/source/filter/ww8/wrtw8sty.cxx 12 Dec 2008 11:11:33 -0000 1.49.44.2
|
| 7 |
+++ openoffice.org/sw/source/filter/ww8/wrtw8sty.cxx 9 Apr 2009 12:02:50 -0000
|
| 8 |
@@ -621,7 +621,14 @@
|
| 9 |
|
| 10 |
ShortToSVBT16( 400, &maWW8_FFN[2] ); // weiss ich nicht besser
|
| 11 |
// 400 == FW_NORMAL (windows.h)
|
| 12 |
- maWW8_FFN[4] = sw::ms::rtl_TextEncodingToWinCharset(eChrSet);
|
| 13 |
+ //
|
| 14 |
+ //#i61927# For unicode fonts like Arial Unicode, Word 97+ sets the chs
|
| 15 |
+ //to SHIFTJIS presumably to capture that it's a multi-byte encoding font
|
| 16 |
+ //but Word95 doesn't do this, and sets it to 0 (ANSI), so we should do the
|
| 17 |
+ //same
|
| 18 |
+ maWW8_FFN[4] = bWrtWW8 ?
|
| 19 |
+ sw::ms::rtl_TextEncodingToWinCharset(eChrSet) :
|
| 20 |
+ rtl_getBestWindowsCharsetFromTextEncoding(eChrSet);
|
| 21 |
|
| 22 |
if (mbAlt)
|
| 23 |
maWW8_FFN[5] = static_cast< BYTE >(msFamilyNm.Len() + 1);
|