<div dir="ltr"><div class="gmail_default" style="font-family:'arial black',sans-serif;font-size:large;color:rgb(0,0,153)">hi, here's my environment:</div><div class="gmail_default" style="font-family:'arial black',sans-serif;font-size:large;color:rgb(0,0,153)">
client: win7(default encoding is GBK)</div><div class="gmail_default" style="font-family:'arial black',sans-serif;font-size:large;color:rgb(0,0,153)">guest the same with client</div><div class="gmail_default" style="font-family:'arial black',sans-serif;font-size:large;color:rgb(0,0,153)">
spice-gtk-0.23d </div><div class="gmail_default" style="font-family:'arial black',sans-serif;font-size:large;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:'arial black',sans-serif;font-size:large;color:rgb(0,0,153)">
a file in guest with a name of Chinese</div><div class="gmail_default" style="font-family:'arial black',sans-serif"><span style="color:rgb(0,0,153);font-size:large">the file name is wrong </span><font color="#000099" size="4">when drag it to guest desktop</font></div>
<div class="gmail_default"><font color="#000099" size="4" style="font-family:'arial black',sans-serif">(I think </font><font color="#000099" size="4">Japanese and Korean have the same problem</font><span style="color:rgb(0,0,153);font-size:large">)</span></div>
<div class="gmail_default" style="font-family:'arial black',sans-serif"><font color="#000099" size="4"><br></font></div><div class="gmail_default"><font color="#000099" size="4" style="font-family:'arial black',sans-serif">the following is my patch to "</font><font color="#000099" size="4">spice-gtk-0.23/gtk/channel-main.c"</font></div>
<div class="gmail_default"><font color="#000099" size="4"><br></font></div><div class="gmail_default"><font color="#000099" size="4">Regards<br></font></div><div class="gmail_default"><font color="#000099" size="4"><br></font></div>
<div class="gmail_default"><font color="#000099" size="4"><div class="gmail_default">--- spice-gtk-0.23/gtk/channel-main.c 2014-02-06 19:08:07.000000000 +0800</div><div class="gmail_default">+++ spice-gtk-0.23_modified/gtk/channel-main.c 2014-02-17 20:12:55.037816310 +0800</div>
<div class="gmail_default">@@ -2786,8 +2786,10 @@</div><div class="gmail_default"><br></div><div class="gmail_default"> /* File name */</div><div class="gmail_default"> basename = g_file_get_basename(file);</div>
<div class="gmail_default">
- g_key_file_set_string(keyfile, "vdagent-file-xfer", "name", basename);</div><div class="gmail_default">+ gchar *basename_loc = g_locale_from_utf8(basename, -1, NULL, NULL, NULL);</div><div class="gmail_default">
+ g_key_file_set_string(keyfile, "vdagent-file-xfer", "name", basename_loc);</div><div class="gmail_default"> g_free(basename);</div><div class="gmail_default">+ g_free(basename_loc);</div><div class="gmail_default">
/* File size */</div><div class="gmail_default"> g_key_file_set_uint64(keyfile, "vdagent-file-xfer", "size", task->file_size);</div><div class="gmail_default"><br></div></font></div><div class="gmail_default">
<font color="#000099" size="4"><br></font></div></div>