diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-31 18:16:16 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-31 18:16:16 +0000 |
commit | 418699b85d0bbe5497ca0570f3c15ae9274460ed (patch) | |
tree | 1f90d8bfccded286555efd67500f2c0e0bb062fe /gtk/file_dlg_win32.c | |
parent | 80d50191a3f235e9667a838873c16d547201ad46 (diff) |
Add utf_8to16_snprintf() which creates a UTF16 string according to the given format string. The format string + arguments are expected to be in UTF-8 format. This change effectively removes the only place where we use PRIu64.
svn path=/trunk/; revision=29635
Diffstat (limited to 'gtk/file_dlg_win32.c')
-rw-r--r-- | gtk/file_dlg_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/file_dlg_win32.c b/gtk/file_dlg_win32.c index fbe2f64577..65f41ce9b5 100644 --- a/gtk/file_dlg_win32.c +++ b/gtk/file_dlg_win32.c @@ -947,7 +947,7 @@ preview_set_filename(HWND of_hwnd, gchar *preview_file) { TCHAR string_buff[PREVIEW_STR_MAX]; gint64 data_offset; guint packet = 0; - guint64 filesize; + gint64 filesize; time_t ti_time; struct tm *ti_tm; guint elapsed_time; @@ -993,7 +993,7 @@ preview_set_filename(HWND of_hwnd, gchar *preview_file) { /* size */ filesize = wtap_file_size(wth, &err); - _snwprintf(string_buff, PREVIEW_STR_MAX, _T("%") _T(PRIu64) _T(" bytes"), filesize); + utf_8to16_snprintf(string_buff, PREVIEW_STR_MAX, "%" G_GINT64_FORMAT " bytes", filesize); cur_ctrl = GetDlgItem(of_hwnd, EWFD_PTX_SIZE); SetWindowText(cur_ctrl, string_buff); |