office-gobmx/config_host/config_locales.h.in
Tor Lillqvist 25d88d2b8e More hacking on --with-locales
Propagate the restriction of locales into <config_locales.h>. Note that in the
normal case, with no locale restrictions, all the WITH_LOCALE_xx macros are
zero anyway, but WITH_LOCALE_ALL is one.

Restrict which character encodings are handled in
sal/textencsal/textenc/tables.cxx based on the WITH_LOCALE_ macros. (Don't
simply always do it for iOS.)

Massage the affected unit tests to not crash when only partial character
encoding information is present.

Change-Id: Ie2c882c262ebd0d2b37dde66b8fe3c3e2570da14
2014-04-24 19:44:10 +03:00

56 lines
1.6 KiB
C

/* Configuration of restriction on supported locales, by the
* --with-locales option.
*
* (Note that this is totally unrelated to what UI language(s) were
* configured with the --with-lang option.)
*
* Normally, especially for desktop OSes, LibreOffice is built to
* support all the locales and character encodings that it has code
* (data) for in the source code. By using the --with-locales
* configure switch, this can be restricted.
*
* This file defines feature test macros for those languages for which
* at least one locale is to be supported. In some cases, a feature
* test macro for a script is provided in addition or instead.
*
* Only languages for which there exists separate code and/or data in
* the source code need to be mentioned here.
*/
#ifndef CONFIG_LOCALES_H
#define CONFIG_LOCALES_H
/* In the normal case WITH_LOCALE_ALL is one and this
* overrides the others which are zero.
*/
#define WITH_LOCALE_ALL 0
/* When --with-locales was used, WITH_LOCALE_ALL is zero and some of
* these are one.
*/
#define WITH_LOCALE_ca 0
#define WITH_LOCALE_dz 0
#define WITH_LOCALE_el 0
#define WITH_LOCALE_he 0
#define WITH_LOCALE_hi 0
#define WITH_LOCALE_hr 0
#define WITH_LOCALE_hu 0
#define WITH_LOCALE_is 0
#define WITH_LOCALE_ja 0
#define WITH_LOCALE_ko 0
#define WITH_LOCALE_ku 0
#define WITH_LOCALE_ln 0
#define WITH_LOCALE_my 0
#define WITH_LOCALE_ne 0
#define WITH_LOCALE_ro 0
#define WITH_LOCALE_ru 0
#define WITH_LOCALE_sid 0
#define WITH_LOCALE_th 0
#define WITH_LOCALE_tr 0
#define WITH_LOCALE_uk 0
#define WITH_LOCALE_zh 0
#define WITH_LOCALE_FOR_SCRIPT_Cyrl 0
#define WITH_LOCALE_FOR_SCRIPT_Deva 0
#endif