adium 5082:0137e5fd38a2: Provide the charset.aliases file inside...

commits at adium.im commits at adium.im
Sun Sep 16 22:09:33 UTC 2012


details:	http://hg.adium.im/adium/rev/0137e5fd38a2
revision:	5082:0137e5fd38a2
branch:		Sandboxing
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Mon Sep 17 00:08:43 2012 +0200

Provide the charset.aliases file inside the libglib.framework bundle, to stop a sandbox violation.

diffs (24 lines):

diff -r b2a946944316 -r 0137e5fd38a2 Frameworks/libglib.framework/Versions/2.0.0/Resources/charset.aliases
--- /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
diff -r b2a946944316 -r 0137e5fd38a2 Plugins/Purple Service/SLPurpleCocoaAdapter.m
--- 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");




More information about the commits mailing list