adium/adium

Parents b2a946944316
Children
Provide the charset.aliases file inside the libglib.framework bundle, to stop a sandbox violation.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Frameworks/libglib.framework/Versions/2.0.0/Resources/charset.aliases Mon Sep 17 00:08:43 2012 +0200
@@ -0,0 +1,5 @@
+# This file contains a table of character encoding aliases,
+# suitable for operating system 'darwin11.2.0'.
+# It was automatically generated from config.charset.
+# Packages using this file: gettext-runtime gettext-tools glib
+* UTF-8
--- a/Plugins/Purple Service/SLPurpleCocoaAdapter.m Sun Sep 16 23:35:23 2012 +0200
+++ b/Plugins/Purple Service/SLPurpleCocoaAdapter.m Mon Sep 17 00:08:43 2012 +0200
@@ -261,7 +261,10 @@
purple_core_set_ui_ops(adium_purple_core_get_ops());
purple_eventloop_set_ui_ops(adium_purple_eventloop_get_ui_ops());
-
+
+ NSBundle *glib = [NSBundle bundleWithIdentifier:@"com.googlepages.openspecies.rtool.libglib"];
+ setenv("CHARSETALIASDIR", [[glib resourcePath] UTF8String], 1);
+
//Initialize the libpurple core; this will call back on the function specified in our core UI ops for us to finish configuring libpurple
if (!purple_core_init("Adium")) {
NSLog(@"*** FATAL ***: Failed to initialize purple core");