summaryrefslogtreecommitdiff
path: root/vcl/unx/source/gdi/salcvt.cxx
diff options
context:
space:
mode:
authorChristof Pintaske <cp@openoffice.org>2000-12-12 13:43:24 +0000
committerChristof Pintaske <cp@openoffice.org>2000-12-12 13:43:24 +0000
commit9a82c77ea9af7598960972ab22192c4b813d71d1 (patch)
tree24565b6aaea03d623ec7875692df2256e2f79f95 /vcl/unx/source/gdi/salcvt.cxx
parente889da4b7718d4e899649dfebdb50ec3b629bfb4 (diff)
#81658# dont use big5 or koi8r for latin chars
Diffstat (limited to 'vcl/unx/source/gdi/salcvt.cxx')
-rw-r--r--vcl/unx/source/gdi/salcvt.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/vcl/unx/source/gdi/salcvt.cxx b/vcl/unx/source/gdi/salcvt.cxx
index 49359471a25f..b598eb875317 100644
--- a/vcl/unx/source/gdi/salcvt.cxx
+++ b/vcl/unx/source/gdi/salcvt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salcvt.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:05:43 $
+ * last change: $Author: cp $ $Date: 2000-12-12 14:42:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -257,6 +257,17 @@ SalConverterCache::EncodingHasChar( rtl_TextEncoding nEncoding,
bMatch = True;
break;
+ case RTL_TEXTENCODING_EUC_KR:
+ case RTL_TEXTENCODING_BIG5:
+
+ // XXX Big5 and Korean EUC contain Ascii chars, but Solaris
+ // *-big5-1 and *-ksc5601.1992-3 fonts dont
+ if (nChar <= 0xFF)
+ {
+ bMatch = False;
+ break;
+ }
+
default:
// XXX really convert the unicode char into the encoding
// and check for conversion errors, this is expensive !