# HG changeset patch # User Christian Hammond # Date 1087767413 0 # Node ID b4dc3827470ad8a90b891d1733e02936aa5a82e1 # Parent d42f3e4fd7adfc997bab218a75a8c046a32c424f [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 diff -r d42f3e4fd7ad -r b4dc3827470a src/protocols/msn/slplink.c --- 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);