diff options
author | Stephan Bergmann <sb@openoffice.org> | 2002-11-06 09:06:03 +0000 |
---|---|---|
committer | Stephan Bergmann <sb@openoffice.org> | 2002-11-06 09:06:03 +0000 |
commit | 941bc180fa03d3d723f7d7192c301429ab2daf7e (patch) | |
tree | 03d6d02e58c6b726186c8a2ad12fae4b0080de05 /sal | |
parent | 0b6b2bf4bdc728b500dad64d23e31dd92848c712 (diff) |
#104776# Fixed conversion of undefined characters from Unicode to EUC-JP.
Diffstat (limited to 'sal')
-rw-r--r-- | sal/textenc/tcvtmb.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sal/textenc/tcvtmb.c b/sal/textenc/tcvtmb.c index 7f4c13556..93a40a390 100644 --- a/sal/textenc/tcvtmb.c +++ b/sal/textenc/tcvtmb.c @@ -2,9 +2,9 @@ * * $RCSfile: tcvtmb.c,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: sb $ $Date: 2002-02-25 14:57:35 $ + * last change: $Author: sb $ $Date: 2002-11-06 10:06:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -611,7 +611,8 @@ sal_Size ImplUnicodeToEUCJP( const ImplTextConverterData* pData, if ( (nLowChar >= pHighEntry->mnLowStart) && (nLowChar <= pHighEntry->mnLowEnd) ) { cConv = pHighEntry->mpToUniTrailTab[nLowChar-pHighEntry->mnLowStart]; - cConv |= 0x8080; + if (cConv != 0) + cConv |= 0x8080; } else cConv = 0; @@ -623,8 +624,9 @@ sal_Size ImplUnicodeToEUCJP( const ImplTextConverterData* pData, pHighEntry = pHighTab+nHighChar; if ( (nLowChar >= pHighEntry->mnLowStart) && (nLowChar <= pHighEntry->mnLowEnd) ) { - cConv = 0x8F0000+(pHighEntry->mpToUniTrailTab[nLowChar-pHighEntry->mnLowStart]); - cConv |= 0x8080; + cConv = pHighEntry->mpToUniTrailTab[nLowChar-pHighEntry->mnLowStart]; + if (cConv != 0) + cConv |= 0x8F8080; } if ( !cConv ) |