diff src/protocols/msn/slplink.c @ 9330:b4dc3827470a

[gaim-migrate @ 10138] Patch by Justin Wood to use gaim_utf8_try_convert during MSN file transfer instea dof g_locale_to_utf8. He says, " For some reason, on some versions of OSX string conversion would fail, returning a NULL string, which would crash gen_context." This closes patch #971502. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 20 Jun 2004 21:36:53 +0000
parents f5f7482678d2
children b3711e089751
line wrap: on
line diff
--- a/src/protocols/msn/slplink.c	Sun Jun 20 19:18:42 2004 +0000
+++ b/src/protocols/msn/slplink.c	Sun Jun 20 21:36:53 2004 +0000
@@ -585,7 +585,7 @@
 	if (stat(file_name, &st) == 0)
 		size = st.st_size;
 
-	u8 = g_locale_to_utf8(g_basename(file_name), -1, NULL, NULL, NULL);
+	u8 = gaim_utf8_try_convert(g_basename(file_name));
 	uni = g_utf8_to_utf16(u8, -1, NULL, &uni_len, NULL);
 	g_free(u8);