1 --- misc/liblangtag-0.2/liblangtag/lt-xml.c 2012-02-02 09:54:51.000000000 +0100
2 +++ misc/build/liblangtag-0.2/liblangtag/lt-xml.c 2012-06-04 17:39:32.010299830 +0200
5 G_LOCK_DEFINE_STATIC (lt_xml);
7 +static const char* get_datadir()
9 + const char* pEnv = getenv( "LIBO_LANGTAG_DATADIR");
17 lt_xml_read_subtag_registry(lt_xml_t *xml,
19 if (!g_file_test(regfile, G_FILE_TEST_EXISTS)) {
22 - regfile = g_build_filename(REGDATADIR, "language-subtag-registry.xml", NULL);
23 + regfile = g_build_filename(get_datadir(), "language-subtag-registry.xml", NULL);
24 #ifdef GNOME_ENABLE_DEBUG
28 if (!g_file_test(regfile, G_FILE_TEST_EXISTS)) {
31 - regfile = g_build_filename(REGDATADIR, "common", "bcp47", filename, NULL);
32 + regfile = g_build_filename(get_datadir(), "common", "bcp47", filename, NULL);
33 #ifdef GNOME_ENABLE_DEBUG