diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-06-28 09:00:11 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-06-28 09:00:11 +0000 |
commit | 8443bbbf757ab65be172b294ff7c32cf93453de8 (patch) | |
tree | a97bda6f59cab16eea09e6e4caf2781785378177 /gtk/simple_dialog.c | |
parent | 6c094f6775a72ab2cf362cc5b172393a97dd68f5 (diff) |
Replace all strerror() with g_strerror().
Remove our local strerror implementation.
Mark strerror as locale unsafe API.
This fixes bug 5715.
svn path=/trunk/; revision=37812
Diffstat (limited to 'gtk/simple_dialog.c')
-rw-r--r-- | gtk/simple_dialog.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/simple_dialog.c b/gtk/simple_dialog.c index ff7d28343a..11a4f7dc99 100644 --- a/gtk/simple_dialog.c +++ b/gtk/simple_dialog.c @@ -299,18 +299,13 @@ display_queued_messages(void) gpointer vsimple_dialog(ESD_TYPE_E type, gint btn_mask, const gchar *msg_format, va_list ap) { - gchar *vmessage; gchar *message; queued_message_t *queued_message; GtkWidget *win; GdkWindowState state = 0; /* Format the message. */ - vmessage = g_strdup_vprintf(msg_format, ap); - - /* convert character encoding from locale to UTF8 (using iconv) */ - message = g_locale_to_utf8(vmessage, -1, NULL, NULL, NULL); - g_free(vmessage); + message = g_strdup_vprintf(msg_format, ap); if (top_level != NULL) { state = gdk_window_get_state(top_level->window); |