summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2001-12-14 17:02:41 +0000
committerThomas Lange <tl@openoffice.org>2001-12-14 17:02:41 +0000
commite37995a441539fc2de99d777dbe1e0b96167ebdb (patch)
tree27a922adf19b76881bc455e93ed78074a4aef300 /linguistic
parentd315a6aa91f0924a38a63a63161ff1402cfd8439 (diff)
#95979# text encoding used for IPR fixed for windows
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/misc.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index 9b7a04bc2521..b59655599749 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: misc.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: tl $ $Date: 2001-11-06 13:40:45 $
+ * last change: $Author: tl $ $Date: 2001-12-14 18:02:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -168,15 +168,31 @@ rtl_TextEncoding GetTextEncoding( INT16 nLanguage )
case LANGUAGE_NORWEGIAN_BOKMAL :
case LANGUAGE_NORWEGIAN_NYNORSK :
case LANGUAGE_AFRIKAANS :
+#ifdef WNT
+ nEncoding = RTL_TEXTENCODING_MS_1252; break;
+#else
nEncoding = RTL_TEXTENCODING_ISO_8859_1; break;
+#endif
case LANGUAGE_CZECH :
case LANGUAGE_HUNGARIAN :
case LANGUAGE_POLISH :
+#ifdef WNT
+ nEncoding = RTL_TEXTENCODING_MS_1250; break;
+#else
nEncoding = RTL_TEXTENCODING_ISO_8859_2; break;
+#endif
case LANGUAGE_RUSSIAN :
+#ifdef WNT
+ nEncoding = RTL_TEXTENCODING_MS_1251; break;
+#else
nEncoding = RTL_TEXTENCODING_ISO_8859_5; break;
+#endif
case LANGUAGE_GREEK :
+#ifdef WNT
+ nEncoding = RTL_TEXTENCODING_MS_1253; break;
+#else
nEncoding = RTL_TEXTENCODING_ISO_8859_7; break;
+#endif
default:
DBG_ERROR( "unexpected language" );
}