commit fd081f38b6183eb4d8d62d63820634ecf7281ef8 Author: Matthias Clasen Date: Sat Aug 19 09:48:14 2017 -0400 2.53.6 NEWS | 24 ++++++++++++++++++++++++ configure.ac | 2 +- meson.build | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) commit 087525b62bfce2137f0f580fa5a6dcc7a294f48c Author: Ondrej Holy Date: Fri Aug 11 13:50:36 2017 +0200 gio-tool: Use print_file_error correctly Use print_file_error where an error relates to that file and vice versa. https://bugzilla.gnome.org/show_bug.cgi?id=786463 gio/gio-tool-cat.c | 2 +- gio/gio-tool-save.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 78fa67e70c600633025d81fce4689b778540064d Author: Ondrej Holy Date: Fri Aug 11 13:47:14 2017 +0200 gio-tool-save: Use g_output_stream_write_all instead of while Simplify the read-write copy code and use g_output_stream_write_all instead of while and g_output_stream_write. https://bugzilla.gnome.org/show_bug.cgi?id=786462 gio/gio-tool-save.c | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) commit 1cce5dda1837e5feba10f96ef6a9422ead6336c6 Author: Ondrej Holy Date: Fri Aug 11 13:43:35 2017 +0200 gfile: Use g_output_stream_write_all instead of while Simplify the read-write copy code and use g_output_stream_write_all instead of while and g_output_stream_write. https://bugzilla.gnome.org/show_bug.cgi?id=786462 gio/gfile.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) commit c7f2a7e431eb48b64fc544b04cbd0dd61eb07f4f Author: Ondrej Holy Date: Fri Aug 11 13:37:29 2017 +0200 gio-tool-save: Prevent overwriting error The following warning is shown, when both g_output_stream_write and g_output_stream_close fail: "GError set over the top of a previous GError or uninitialized memory." Let's clear the error after use. https://bugzilla.gnome.org/show_bug.cgi?id=786463 gio/gio-tool-save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 37cddec0ee141beefc74e2b67f2e0808d3c94ff2 Author: Ondrej Holy Date: Fri Aug 11 13:21:28 2017 +0200 gio-tool: Unify buffer sizes Recently, buffer size for copying has been increased in order to improve performance: https://bugzilla.gnome.org/show_bug.cgi?id=773823 Let's do the same for gio-tool-save and gio-tool-cat. https://bugzilla.gnome.org/show_bug.cgi?id=786460 gio/gio-tool-cat.c | 10 ++++++++-- gio/gio-tool-save.c | 9 +++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) commit 72a87d8629101635bc6815ce119f18016f6fecee Author: Pawan Chitrakar Date: Fri Aug 18 12:17:42 2017 +0000 Update Nepali translation po/ne.po | 7121 +++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 4463 insertions(+), 2658 deletions(-) commit 51d2f4fef78c50ea3c729ed5d74ae3ac35cf03b3 Author: Gábor Kelemen Date: Fri Aug 18 08:31:58 2017 +0000 Update Hungarian translation po/hu.po | 11256 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 5647 insertions(+), 5609 deletions(-) commit 15faf0ef62c3053292eb67a93fdbf6c72762112b Author: INSUN PYO Date: Fri Aug 18 13:42:44 2017 +0900 glog: fix crash on Linux without stderr stream 0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58 1 0xb67c43f0 in __GI_abort () at abort.c:89 2 0xb69ee9d8 in _g_log_abort (breakpoint=2, breakpoint@entry=1) at gmessages.c:548 3 0xb69ef692 in g_logv (log_domain=0xb6a1dfc8 "GLib", log_level=-1254563840, log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0xb6a26a48 "%s: assertion '%s' failed", args=..., args@entry=...) at gmessages.c:1357 4 0xb69ef728 in g_log (log_domain=, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=0xb6a26a48 "%s: assertion '%s' failed") at gmessages.c:1398 5 0xb69efa5a in g_return_if_fail_warning (log_domain=, pretty_function=, expression=) at gmessages.c:2687 6 0xb69efe7c in g_log_writer_is_journald (output_fd=-1) at gmessages.c:2122 7 0xb69f02a2 in g_log_writer_default (log_level=G_LOG_LEVEL_CRITICAL, fields=0xbedc9d00, n_fields=4, user_data=0x0) at gmessages.c:2584 8 0xb69ef21a in g_log_structured_array (log_level=G_LOG_LEVEL_CRITICAL, fields=0xbedc9d00, n_fields=4) at gmessages.c:1933 9 0xb69ef47e in g_log_default_handler (log_domain=0xb6a1dfc8 "GLib", log_level=G_LOG_LEVEL_CRITICAL, message=, unused_data=) at gmessages.c:3036 10 0xb69ef5fc in g_logv (log_domain=0xb6a1dfc8 "GLib", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0xb6a26a48 "%s: assertion '%s' failed", args=..., args@entry=...) at gmessages.c:1336 11 0xb69ef728 in g_log (log_domain=, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=0xb6a26a48 "%s: assertion '%s' failed") at gmessages.c:1398 12 0xb69efa5a in g_return_if_fail_warning (log_domain=, pretty_function=, expression=) at gmessages.c:2687 If stderr is not associated with an output stream, the fileno(stderr) returned is -1. So, g_return_if_fail_warning is recursively called and the abort occurs on the second call. Modified by Philip Withnall to include mention this in the documentation. https://bugzilla.gnome.org/show_bug.cgi?id=786452 glib/gmessages.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 54aee1f627272fbd0d5b7b261b1568a3cac7b73f Author: Chun-wei Fan Date: Tue Jul 18 22:19:54 2017 +0800 Meson: Set _WIN32_WINNT to 0x0601 (Windows 7) We want to set _WIN32_WINNT so that functions will be properly found in the headers, to target the NT6.1+ (Windows 7+) APIs. Also improve the checks for if_nametoindex() and if_indextoname() on Windows as they are supported in Windows Vista+, but they have to be checked by linking against iphlpapi.lib (or -liphlpapi). On other platforms, they are still checked as they were before. https://bugzilla.gnome.org/show_bug.cgi?id=783270 config.h.meson | 2 +- gio/meson.build | 2 +- meson.build | 27 +++++++++++++++++++++++++-- 3 files changed, 27 insertions(+), 4 deletions(-) commit ea6ac5f71eefcfa98fdce130170ab15f8464219d Author: Chun-wei Fan Date: Tue Jul 25 16:28:29 2017 +0800 meson/Windows: Check whether system PCRE is a static build Instead of hardcoding -DPCRE_STATIC into the CFLAGS of GLib, do the following on Windows only (since PCRE_STATIC only matters on Windows): -If there is no installed PCRE, use the included PCRE copy and enable -DPCRE_STATIC, as we did before. -If there is a installed PCRE, check whether the PCRE build is a static or DLL build by checking the linkage against pcre_free() with PCRE_STATIC defined works. If it does, enable -DPCRE_STATIC. -On non-Windows builds, do not enable -DPCRE_STATIC https://bugzilla.gnome.org/show_bug.cgi?id=783270 glib/meson.build | 8 +++++++- meson.build | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) commit 72528938b726f807e073a31ca2b111b1388e09d3 Author: Chun-wei Fan Date: Mon Jul 17 15:51:54 2017 +0800 Meson: Check for HAVE_GOOD_PRINTF The HAVE_GOOD_PRINTF config variable determines whether we are able to use the CRT-supplied *printf() functions directly, by determining whether the CRT-supplied vsnprintf() and snprintf() functions support C99 well enough. This means, we need to build the gnulib subdir as a static lib in GLib, and use the gnulib *printf() functions when: -We are on Windows -The CRT's vsnprintf() and snprintf() is not sufficiently C99-compliant. This will fix the problem when the *printf() functions cause a CRT abort() call on pre-2015 Visual Studio builds at least, and ensures that the Visual Studio 2015+ builds will pass the printf tests in GLib, since the *printf() in Visual Studio 2015/2017's CRT does not support the %n format specifier, nor the positional parameters (which requires different _*printf_p*() functions), as indicated by glib/tests/test-printf.c. https://bugzilla.gnome.org/show_bug.cgi?id=783270 glib/gnulib/meson.build | 4 ++++ glib/meson.build | 7 ++++++- meson.build | 24 ++++++++++++++++++------ 3 files changed, 28 insertions(+), 7 deletions(-) commit 79b84ba3fcde0abbffc51bd62cd395b02ca8e6f3 Author: Chun-wei Fan Date: Wed Aug 16 17:44:20 2017 +0800 meson: Install msvc_recommended_pragmas.h on Windows Copy the msvc_recommended_pragmas.h helper header when we build for Windows, so that people developing/using GLib on Windows can make use of them in Visual Studio, so that unwanted compiler noise can be filtered out and code with potentially-problematic warnings can be attended to. https://bugzilla.gnome.org/show_bug.cgi?id=783270 meson.build | 4 ++++ 1 file changed, 4 insertions(+) commit 32d6a76b98657cec971327ffaa7866f3c801a379 Author: Chun-wei Fan Date: Tue Aug 15 17:08:47 2017 +0800 build: Use Meson's find_library() for MSVC builds as needed Some of the dependencies' build systems for Visual Studio do not provide a pkg-config file upon build, so we use find_library() for them when the corresponding pkg-config files are not found during Visual Studio builds, so that one will not need to make up pkg-config files for them, which could be error-prone. These .lib names match the names that are built with the officially supported build system that is used by their respective Visual Studio support. For ZLib, this will make gio-2.0.pc reflect on the zlib .lib based on what is found, or whether we use the fallback/bundled ZLib, when we don't have a pkg-config file for ZLib on MSVC. We still need to depend on Meson to be updated to put the correct link argument for linking ZLib in the pkg-config case. https://bugzilla.gnome.org/show_bug.cgi?id=783270 gio/tests/meson.build | 12 ++++++++++++ meson.build | 43 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 53 insertions(+), 2 deletions(-) commit 615425d10069d1595db62a5d3f678a78cc970350 Author: Jordi Mas Date: Thu Aug 17 07:35:17 2017 +0200 Update Catalan translation po/ca.po | 1585 ++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 925 insertions(+), 660 deletions(-) commit 00f5d2ffa2aaa6423176bdd48db777b47de8735a Author: Ernestas Kulik Date: Wed Aug 16 14:19:30 2017 +0300 gobject: add autoptr support for GClosure This commit defines a g_autoptr() cleanup function for use with GClosure. https://bugzilla.gnome.org/show_bug.cgi?id=786360 gobject/gobject-autocleanups.h | 1 + 1 file changed, 1 insertion(+) commit 44b5036714487f60deedf52d6660fb26171d8b8e Author: Мирослав Николић Date: Wed Aug 16 07:24:45 2017 +0200 Updated Serbian translation po/sr.po | 1920 ++++++++++++++++++++++++++++---------------------------- po/sr@latin.po | 1920 ++++++++++++++++++++++++++++---------------------------- 2 files changed, 1910 insertions(+), 1930 deletions(-) commit 947fea1d163db78671e24c970ded13a242acdd0a Author: Robert Ancell Date: Fri Aug 4 10:57:26 2017 +1200 GDateTime: Reject days outside of month limits The previous code allowed February 30th. glib/gdatetime.c | 2 +- glib/tests/gdatetime.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) commit f6ee658974b25ee99db102dc9a8dc778868483d9 Author: Aurimas Černius Date: Tue Aug 15 17:51:59 2017 +0300 Updated Lithuanian translation po/lt.po | 1164 +++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 691 insertions(+), 473 deletions(-) commit 4c46869081ceb156fd7555b6fa67954dc0ca1bca Author: Nirbheek Chauhan Date: Mon Aug 14 00:05:52 2017 +0530 meson: Always define _GNU_SOURCE for pthread checks Without this, GNU-specific symbols won't be defined and the compiler check will pass because GCC will assume that you know what you're doing since it doesn't know what the symbol prototype is and compiler checks aren't built with -Wall -Werror. This will then cause a build failure because the wrong prototype will be used. meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 788705633ede3a82f7ca0e1014dc8e6f7a02b349 Author: Руслан Ижбулатов Date: Thu May 12 08:49:51 2016 +0000 W32: Support XDG_* environment variables Try to get XDG_* environment variables and, if they are available, use their contents to initialize various directories the same way this happens on *nix. When these variables are not available, fall back to the W32-specific APIs for getting directories. https://bugzilla.gnome.org/show_bug.cgi?id=766358 glib/gutils.c | 190 ++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 125 insertions(+), 65 deletions(-) commit f9fe9ea41703c54e81ba8463d8f0574a4fd640ef Author: Fran Dieguez Date: Sat Aug 12 10:29:12 2017 +0000 Update Galician translation po/gl.po | 75 ++++++---------------------------------------------------------- 1 file changed, 7 insertions(+), 68 deletions(-) commit fac7f2be2e99c71410260c70b47954154823cb3d Author: Philip Withnall Date: Thu Aug 10 12:31:35 2017 +0100 gsequence: Add introspection annotations to Return values Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=786060 glib/gsequence.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) commit 50eeb244157a36ea045499eafc4c49ea6d769036 Author: Emmanuele Bassi Date: Wed Aug 9 21:31:59 2017 +0100 meson: Update the pthread feature checks For GNU extensions, we need to define _GNU_SOURCE; but, more importantly, we need to tell Meson to use the threadlib dependency when compiling and linking the feature check. This currently exposes a bug in Meson; see: https://github.com/mesonbuild/meson/issues/2165 But once that's fixed, the check will work as intended. https://bugzilla.gnome.org/show_bug.cgi?id=785955 meson.build | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) commit 1a755a63e1c632ae57de8117e9e03497c19d9b20 Author: Emmanuele Bassi Date: Wed Aug 9 21:29:13 2017 +0100 meson: Define _GNU_SOURCE as a project argument We use it pretty much everywhere in order to get feature detection, and that's also what the AC_USE_SYSTEM_EXTENSIONS m4 macro defines in the Autotools build. https://bugzilla.gnome.org/show_bug.cgi?id=785955 meson.build | 2 ++ 1 file changed, 2 insertions(+) commit 4860511d8dd9cfbca00d10c6131d88e91d6b289f Author: Fran Dieguez Date: Thu Aug 10 09:29:48 2017 +0000 Update Galician translation po/gl.po | 1981 ++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 1139 insertions(+), 842 deletions(-) commit 189243b585298c51b39adf62ce8f53f0a2da34be Author: Kukuh Syafaat Date: Tue Aug 8 16:01:29 2017 +0000 Update Indonesian translation po/id.po | 880 ++++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 530 insertions(+), 350 deletions(-) commit f6aa8c398868907bb68ab39c61d943bcde76e284 Author: Daniel Boles Date: Mon Aug 7 20:39:06 2017 +0100 GSList: Note that using ->next directly is OK as for GList glib/gslist.c | 2 ++ 1 file changed, 2 insertions(+) commit a2ec32833e0b2d1132f25489ad2f572eaba7c641 Author: Daniel Boles Date: Mon Aug 7 20:33:25 2017 +0100 GList: Fix typo of member ->prev in documentation It said list->previous, which is not a thing that exists. glib/glist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)