Use ws_fopen() so we properly handle UTF-8 file names on Windows.

svn path=/trunk/; revision=53725
This commit is contained in:
Guy Harris 2013-12-02 18:58:40 +00:00
parent 72065e7d69
commit e313b15f03
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@
#include <gtk/gtk.h>
#include <wsutil/report_err.h>
#include <wsutil/file_util.h>
#include <epan/stats_tree_priv.h>
@ -296,7 +297,7 @@ save_as_dialog(GtkWidget *win _U_, stats_tree *st)
str_tree=stats_tree_format_as_str(st,file_type,sort_column-N_RESERVED_COL,order==GTK_SORT_DESCENDING);
/* actually save the file */
f= fopen (file_name->str,"w");
f= ws_fopen (file_name->str,"w");
last_errno= errno;
if (f) {
if (fputs(str_tree->str, f)!=EOF) {