[glib: 1/2] Fixing g_format_size() on Windows
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] Fixing g_format_size() on Windows
- Date: Tue, 14 May 2019 10:26:33 +0000 (UTC)
commit 08f08448ecf8efa01d8abb5d66996016c8f9d8b6
Author: Emmanuel Fleury <emmanuel fleury u-bordeaux fr>
Date: Mon May 13 08:41:06 2019 +0200
Fixing g_format_size() on Windows
It seems that the issue went away on current Window systems.
Fix #429
glib/gutils.c | 9 ---------
1 file changed, 9 deletions(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index 766248dec..4f7d9b19f 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -2478,16 +2478,7 @@ g_format_size_full (guint64 size,
/* Translators: the %s in "%s bits" will always be replaced by a number. */
translated_format = g_dngettext (GETTEXT_PACKAGE, "%s bit", "%s bits", plural_form);
}
- /* XXX: Windows doesn't support the "'" format modifier, so we
- * must not use it there. Instead, just display the number
- * without separation. Bug #655336 is open until a solution is
- * found.
- */
-#ifndef G_OS_WIN32
formatted_number = g_strdup_printf ("%'"G_GUINT64_FORMAT, size);
-#else
- formatted_number = g_strdup_printf ("%"G_GUINT64_FORMAT, size);
-#endif
g_string_append (string, " (");
g_string_append_printf (string, translated_format, formatted_number);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]