From 36fd22434288ac6dab46bb88de4fc16b3e923eb5 Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Tue, 4 Mar 2003 23:44:58 +0000 Subject: Add support for uk_UA.KOI8-U locale. Submitted by: Alexandr Kovalenko PR: 48789 --- .../patch-dtrans+source+X11+X11_selection.cxx | 8 ++++++++ .../files/patch-sal+osl+unx+nlsupport.c | 14 ++++++++++--- .../files/patch-sal+textenc+tencinfo.c | 24 ++++++++++++++++++++++ .../files/patch-sysui+tools+lngconv+lngconv.cxx | 8 ++++++++ 4 files changed, 51 insertions(+), 3 deletions(-) (limited to 'editors/openoffice-1.0/files') diff --git a/editors/openoffice-1.0/files/patch-dtrans+source+X11+X11_selection.cxx b/editors/openoffice-1.0/files/patch-dtrans+source+X11+X11_selection.cxx index 5e02222798cc..e3159c23c1a3 100644 --- a/editors/openoffice-1.0/files/patch-dtrans+source+X11+X11_selection.cxx +++ b/editors/openoffice-1.0/files/patch-dtrans+source+X11+X11_selection.cxx @@ -9,3 +9,11 @@ #include #else #include +@@ -175,6 +175,7 @@ + { 0, "text/plain;charset=ksc5601.1992-0", "KSC5601.1992-0", 8 }, + // eastern european encodings + { 0, "text/plain;charset=koi8-r", "KOI8-R", 8 }, ++ { 0, "text/plain;charset=koi8-u", "KOI8-U", 8 }, + // String (== iso8859-1) + { XA_STRING, "text/plain;charset=string", "STRING", 8 }, + // special for compound text diff --git a/editors/openoffice-1.0/files/patch-sal+osl+unx+nlsupport.c b/editors/openoffice-1.0/files/patch-sal+osl+unx+nlsupport.c index 7fa1cd5d7898..9bebad2b4386 100644 --- a/editors/openoffice-1.0/files/patch-sal+osl+unx+nlsupport.c +++ b/editors/openoffice-1.0/files/patch-sal+osl+unx+nlsupport.c @@ -109,8 +109,8 @@ + { "ISO8859-5", RTL_TEXTENCODING_ISO_8859_5 }, /* Cyrillic */ + { "ISO8859-7", RTL_TEXTENCODING_ISO_8859_7 }, /* Greek */ + { "ISO8859-9", RTL_TEXTENCODING_ISO_8859_9 }, /* Turkish */ -+ { "KOI-U", RTL_TEXTENCODING_DONTKNOW }, /* Not supported at the moment */ + { "KOI8-R", RTL_TEXTENCODING_KOI8_R }, /* KOI8 */ ++ { "KOI8-U", RTL_TEXTENCODING_KOI8_U }, /* KOI8-U */ + { "SJIS", RTL_TEXTENCODING_SHIFT_JIS }, /* Japan */ + { "US-ASCII", RTL_TEXTENCODING_ASCII_US }, /* US-ASCII */ + { "UTF-8", RTL_TEXTENCODING_UTF8 } /* ISO-10646/UTF-8 */ @@ -137,8 +137,8 @@ + { "ISO8859-5", RTL_TEXTENCODING_ISO_8859_5 }, /* Cyrillic */ + { "ISO8859-7", RTL_TEXTENCODING_ISO_8859_7 }, /* Greek */ + { "ISO8859-9", RTL_TEXTENCODING_ISO_8859_9 }, /* Turkish */ -+ { "KOI-U", RTL_TEXTENCODING_DONTKNOW }, /* Not supported at the moment */ + { "KOI8-R", RTL_TEXTENCODING_KOI8_R }, /* KOI8 */ ++ { "KOI8-U", RTL_TEXTENCODING_KOI8_U }, /* KOI8-U */ + { "SJIS", RTL_TEXTENCODING_SHIFT_JIS }, /* Japan */ + { "US-ASCII", RTL_TEXTENCODING_ASCII_US }, /* US-ASCII */ + { "UTF-8", RTL_TEXTENCODING_UTF8 } /* ISO-10646/UTF-8 */ @@ -166,7 +166,15 @@ /* * This implementation of osl_getTextEncodingFromLocale maps -@@ -887,6 +945,6 @@ +@@ -684,6 +742,7 @@ + { "iso8859-8", RTL_TEXTENCODING_ISO_8859_8 }, + { "iso8859-9", RTL_TEXTENCODING_ISO_8859_9 }, + { "koi8-r", RTL_TEXTENCODING_KOI8_R }, ++ { "koi8-u", RTL_TEXTENCODING_KOI8_U }, + { "pck", RTL_TEXTENCODING_MS_932 }, + #if (0) + { "sun_eu_greek", RTL_TEXTENCODING_DONTKNOW }, +@@ -887,6 +946,6 @@ return 0; } diff --git a/editors/openoffice-1.0/files/patch-sal+textenc+tencinfo.c b/editors/openoffice-1.0/files/patch-sal+textenc+tencinfo.c index 7cf80c18d0a0..03825fb8b4a5 100644 --- a/editors/openoffice-1.0/files/patch-sal+textenc+tencinfo.c +++ b/editors/openoffice-1.0/files/patch-sal+textenc+tencinfo.c @@ -1,5 +1,13 @@ --- ../sal/textenc/tencinfo.c.orig Wed Jul 31 11:44:35 2002 +++ ../sal/textenc/tencinfo.c Wed Jul 31 11:45:47 2002 +@@ -532,6 +532,7 @@ + static ImplStrCharsetDef const aUnixCharsetKOI8Tab[] = + { + { "r", RTL_TEXTENCODING_KOI8_R }, ++ { "u", RTL_TEXTENCODING_KOI8_U }, + { NULL, RTL_TEXTENCODING_DONTKNOW } + }; + @@ -695,6 +695,10 @@ /* characters. The function search for the first equal string in */ /* the table. In this table are only the most used mime types. */ @@ -11,3 +19,19 @@ static ImplStrCharsetDef const aVIPMimeCharsetTab[] = { { "usascii", RTL_TEXTENCODING_ASCII_US }, +@@ -741,6 +742,7 @@ + { "windows1256", RTL_TEXTENCODING_MS_1256 }, + { "windows1257", RTL_TEXTENCODING_MS_1257 }, + { "windows1258", RTL_TEXTENCODING_MS_1258 }, ++ { "koi8u", RTL_TEXTENCODING_KOI8_U }, + { NULL, RTL_TEXTENCODING_DONTKNOW } + }; + +@@ -815,6 +817,7 @@ + { "iso10646us", RTL_TEXTENCODING_ASCII_US }, + { "iso646irv", RTL_TEXTENCODING_ASCII_US }, + { "cskoi8r", RTL_TEXTENCODING_KOI8_R }, ++ { "cskoi8u", RTL_TEXTENCODING_KOI8_U }, + { "ibm437", RTL_TEXTENCODING_IBM_437 }, + { "cp437", RTL_TEXTENCODING_IBM_437 }, + { "437", RTL_TEXTENCODING_IBM_437 }, diff --git a/editors/openoffice-1.0/files/patch-sysui+tools+lngconv+lngconv.cxx b/editors/openoffice-1.0/files/patch-sysui+tools+lngconv+lngconv.cxx index 732f77fcb482..e7497406c222 100644 --- a/editors/openoffice-1.0/files/patch-sysui+tools+lngconv+lngconv.cxx +++ b/editors/openoffice-1.0/files/patch-sysui+tools+lngconv+lngconv.cxx @@ -9,3 +9,11 @@ #include #include #endif +@@ -143,6 +143,7 @@ + { "iso8859-8", RTL_TEXTENCODING_ISO_8859_8 }, + { "iso8859-9", RTL_TEXTENCODING_ISO_8859_9 }, + { "koi8-r", RTL_TEXTENCODING_KOI8_R }, ++ { "koi8-u", RTL_TEXTENCODING_KOI8_U }, + { "pck", RTL_TEXTENCODING_MS_932 }, + #if (0) + { "sun_eu_greek", RTL_TEXTENCODING_DONTKNOW }, -- cgit v1.2.3