[Libreoffice-commits] core.git: sal/textenc
Tor Lillqvist
tml at collabora.com
Tue Apr 22 07:00:04 PDT 2014
sal/textenc/tables.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 247cec2c119464dca7775c1a556cc2bfd59e0f8c
Author: Tor Lillqvist <tml at collabora.com>
Date: Tue Apr 22 16:55:13 2014 +0300
Bypass EUC and ISO-2022 encoding tables for iOS
It is questionable whether they are needed for any document
format. Saves 0.4 MB of app executable size. If it turns out that some
document format that support is needed for actually does need these
tables, will have to revert this then. An alternative, but more
complex, way to save executable size would be to put this, and other,
conversion data into a data file instead.
Change-Id: I017e8f15626023af1344964be54c09fe2d937acc
diff --git a/sal/textenc/tables.cxx b/sal/textenc/tables.cxx
index 90b40ce..0d5eaf0 100644
--- a/sal/textenc/tables.cxx
+++ b/sal/textenc/tables.cxx
@@ -171,11 +171,19 @@ extern "C" SAL_DLLPUBLIC_EXPORT ImplTextEncodingData const *
&aImplGBT12345TextEncodingData, /* GBT_12345 */
&aImplGBKTextEncodingData, /* GBK */
&aImplBIG5TextEncodingData, /* BIG5 */
+#ifndef IOS
&aImplEUCJPTextEncodingData, /* EUC_JP */
&aImplEUCCNTextEncodingData, /* EUC_CN */
&aImplEucTwTextEncodingData, /* EUC_TW */
&aImplIso2022JpTextEncodingData, /* ISO_2022_JP */
&aImplIso2022CnTextEncodingData, /* ISO_2022_CN */
+#else
+ NULL, /* EUC_JP */
+ NULL, /* EUC_CN */
+ NULL, /* EUC_TW */
+ NULL, /* ISO_2022_JP */
+ NULL, /* ISO_2022_CN */
+#endif
&aImplKOI8RTextEncodingData, /* KOI8_R */
&aImplUTF7TextEncodingData, /* UTF7 */
NULL, /* UTF8, see above */
More information about the Libreoffice-commits
mailing list