Commit Graph

24461 Commits

Author SHA1 Message Date
Aurimas Černius
11f591dc15 Updated Lithuanian translation 2022-01-16 21:30:36 +02:00
Emmanuel Fleury
cddce179f5 Remove a disabled test case that was covered by glib/tests/collate.c
Related to issue #1434
2022-01-15 13:44:15 +01:00
Tim Mooney
8cc71d35d0 Fix GDateTime timezone resolution for Illumos
Closes #2550
2022-01-14 22:39:56 -06:00
Nirbheek Chauhan
41d80f5029 Merge branch 'wip/pwithnall/2565-array-preprocessor' into 'main'
tests: Fix compilation failure on msys2-mingw64

Closes #2565

See merge request GNOME/glib!2419
2022-01-14 14:47:53 +00:00
Marek Černocký
660b6f6022 Updated Czech translation 2022-01-14 12:04:11 +01:00
Boyuan Yang
4ee591f5f2 Update Chinese (China) translation 2022-01-13 20:27:46 +00:00
Emmanuel Fleury
86fedcfb93 Merge tests/gobject/gvalue-test.c with gobject/tests/value.c
Helps issue #1434
2022-01-12 21:51:05 +01:00
Phaedrus Leeds
6342922d27 gdbus-codegen: Fix a typo in a comment 2022-01-11 20:03:13 -08:00
Emmanuele Bassi
dc8fa924ae Merge branch 'remove-btrfs-optimization' into 'main'
gfileutils: Remove outdated BTRFS fsync optimization from set_contents

See merge request GNOME/glib!2425
2022-01-11 18:58:13 +00:00
Sebastian Keller
d9e001e2cd gfileutils: Remove outdated BTRFS fsync optimization from set_contents
This code was skipping fsync on BTRFS because of an old guarantee about
the overwrite-by-rename behavior that no longer holds true. This has
been confirmed by the BTRFS developers to no longer be guaranteed since
Kernel 3.17 (August 2014), but it was guaranteed when this optimization
was first introduced in 2010.

This could result in empty files after crashes in applications using
g_file_set_contents(). Most prominently this might have been the cause
of dconf settings getting lost on BTRFS after crashes due to the
frequency with which such writes can happen in dconf.

See: https://gitlab.gnome.org/GNOME/dconf/-/issues/73
2022-01-11 19:07:01 +01:00
Patrick Griffis
96ce3feeb9 gtlscertificate: Add ability to load PKCS #12 encrypted files
This depends on the GTlsBackend implementing these properties
2022-01-07 11:27:56 -06:00
Sebastian Dröge
ae0ec9b753 Merge branch 'testutils-docs' into 'main'
gtestutils: Fix minor typos in the g_test_get_filename() docs

See merge request GNOME/glib!2417
2022-01-07 10:52:47 +00:00
Philip Withnall
233611fe42 tests: Fix compilation failure on msys2-mingw64
This is a follow-up from commit 995823b9d9, which added the condition
```
```
to the array test. On most platforms, both of those symbols are numeric
literals, but on 64-bit Windows `G_MAXSIZE` includes some widening
casts, which means it can’t be used in a preprocessor condition.

We don’t expose an appropriate symbol in `glibconfig.h` which could be
used instead, but the standard `*_WIDTH` symbols from `limits.h` will be
identical and can be used instead.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #2565
2022-01-06 13:22:23 +00:00
Philip Withnall
84202a2ef0 guniprop: Set jungseong and jongseong points to zero-width for Old Korean
This mirrors what `wcwidth()` from glibc does as of June 2020 (commit
6e540caa2).

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #2564
2022-01-06 13:11:24 +00:00
Philip Withnall
e6b85bc05c gtestutils: Fix minor typos in the g_test_get_filename() docs
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-01-06 12:52:00 +00:00
Philip Withnall
2c958470d2 Merge branch 'gcc-win-cross-build-fix' into 'main'
Fix cross build error for Windows with gcc

Closes #2571

See merge request GNOME/glib!2416
2022-01-06 12:08:36 +00:00
229f7d4a03 Fix cross build error for Windows with gcc
This commit puts an additional underscore before the external symbol
`_g_binary_test1_resource_data` when using gcc for Windows, to match
the compiler's expectation.

Fixes #2571

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
2022-01-06 09:20:54 +01:00
Nirbheek Chauhan
7f071de3e3 Merge branch 'main' into 'main'
Use meson dependency to link against apple framework

See merge request GNOME/glib!2413
2022-01-06 06:25:13 +00:00
Kelvin Zhang
2a4422b0f2 Use meson dependency to link against apple framework
Using ld_flags would work, but that does not propagate ldflags to users
of glib. Meson's dependency() call will propagate apple framework
dependencies to downstream users.
2022-01-05 11:32:32 -08:00
Daniel Mustieles
614a4560c3 Updated Spanish translation 2022-01-04 12:17:28 +01:00
Sebastian Dröge
d5ebd6af70 Merge branch 'bilelmoussaoui/g-i' into 'main'
paramspec: fix unref annotation

See merge request GNOME/glib!2412
2021-12-30 12:53:18 +00:00
Bilal Elmoussaoui
2f9b3ec6cc paramspec: fix unref annotation 2021-12-30 12:40:47 +00:00
Yosef Or Boczko
301f00cdd8 Update Hebrew translation 2021-12-29 16:29:41 +00:00
Emmanuele Bassi
32b4bcb668 Merge branch 'content-type-guess-filename' into 'main'
annotate `g_content_type_guess` parameter as filename

See merge request GNOME/glib!2411
2021-12-28 21:02:38 +00:00
Andy Russell
82ece18644
annotate g_content_type_guess parameter as filename 2021-12-28 15:36:54 -05:00
Aleksandr Melman
62a88d9f38 Update Russian translation 2021-12-25 13:01:35 +00:00
Emmanuele Bassi
036340b25f Merge branch 'g_get_user_cache_dir' into 'main'
utils: Add XDG_STATE_HOME support

See merge request GNOME/glib!2395
2021-12-24 20:11:40 +00:00
Sophie Herold
68eab1d999 utils: Add XDG_STATE_HOME support 2021-12-24 20:11:39 +00:00
Sebastian Dröge
8ca2a7d7c8 Merge branch 'wip/pwithnall/fix-environment-tests' into 'main'
tests: Fix environment test on FreeBSD

See merge request GNOME/glib!2407
2021-12-24 10:08:50 +00:00
Philip Withnall
8225637596 Merge branch '2560-s-isreg' into 'main'
xdgmime: Add missing S_ISREG definitions for VS2022

Closes #2560

See merge request GNOME/glib!2406
2021-12-23 17:37:44 +00:00
Philip Withnall
2f53c8ed64 Merge branch 'barch/windows_no_popups' into 'main'
Prevent gtest tests from popping up dialog boxes

See merge request GNOME/glib!2400
2021-12-23 13:14:00 +00:00
Philip Withnall
1a1f05234e Merge branch 'improve_gasyncqueue_tests' into 'main'
Improve test coverage of glib/tests/asyncqueue.c

See merge request GNOME/glib!2403
2021-12-23 13:11:45 +00:00
Philip Withnall
f3ad0f678f Merge branch 'improve_environment_tests' into 'main'
Improving glib/tests/environment.c

See merge request GNOME/glib!2402
2021-12-23 13:09:11 +00:00
Philip Withnall
4bb9e20fff tests: Fix environment test on FreeBSD
Fix for commit 20c8ea1bc651bc4b79d39b80d42b468f6e7a2dc8; while Linux
seems happy to return the value for the invalid key we set above, BSD
returns NULL (which is probably a more valid thing to do).

Accept both.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2021-12-23 13:04:49 +00:00
Philip Withnall
ca6cf3c64a Merge branch 'fix_warnings' into 'main'
Fix several cosmetic warnings

Closes #2559

See merge request GNOME/glib!2401
2021-12-23 12:51:19 +00:00
Philip Withnall
954a8724c2 xdgmime: Add missing S_ISREG definitions for VS2022
Otherwise building with VS2022 fails with:
```
Creating library D:/temp/29/.sw/out/323969/gnome.glib.gio-2.71.0.lib and object D:/temp/29/.sw/out/323969/gnome.glib.gio-2.71.0.exp
xdgmime.c.4b279509.obj : error LNK2019: unresolved external symbol S_ISREG referenced in function _gio_xdg_get_mime_type_for_file
xdgmimecache.c.79af418f.obj : error LNK2001: unresolved external symbol S_ISREG
D:\temp\29\.sw\out\323969\gnome.glib.gio-2.71.0.dll : fatal error LNK1120: 1 unresolved externals
```

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #2560
2021-12-23 12:35:48 +00:00
Kukuh Syafaat
eaa52ddfc5 Update Indonesian translation 2021-12-22 09:15:20 +00:00
Charles Barto
5c82bf65d6 include crtdbg first, so includes are alphabatical 2021-12-17 16:49:42 -08:00
Charles Barto
77df44371e Only call _set_abort_behavior with the ucrt. 2021-12-17 16:05:14 -08:00
Emmanuel Fleury
aa99af54aa Improve test coverage of glib/tests/asyncqueue.c 2021-12-17 21:21:49 +01:00
Emmanuel Fleury
c6ced6abe0 Improving glib/tests/environment.c 2021-12-17 20:18:40 +01:00
Emmanuel Fleury
3887de12a9 Fix old_mem_chunk_new() does not match original declaration warning in tests/slice-test.c
tests/slice-test.c:30:17: warning: type of ‘old_mem_chunk_new’ does not match original declaration
2021-12-17 16:35:45 +01:00
Emmanuel Fleury
c8274a51cd Fix defined but not used warning in gobject/gobject.c
gobject/gobject.c:1189:1: warning: ‘floating_check’ defined but not used
2021-12-17 15:30:18 +01:00
Philip Withnall
49ec7f18e3 Merge branch 'meson-win32-static' into 'main'
meson: Fix linking with static library in Windows

See merge request GNOME/glib!2384
2021-12-17 12:22:31 +00:00
Philip Withnall
9fd3b5ed23 Merge branch 'env-test' into 'main'
Move tests/env-test.c into glib/tests/environment.c

See merge request GNOME/glib!2399
2021-12-17 11:51:51 +00:00
Charles Barto
908ed3498b Prevent gtest tests from popping up dialog boxes
Many UCRT (and msvcrt/msvcxx) functions open dialog boxes
by default for .... some reason. This is a problem because a test runner
waiting on a process to exit won't see it exit unless someone actually
clicks away the box, which won't happen on a CI machine.

Additionally g_abort unconditionally raises a debugging exception,
which, if uncaught, will cause windows error reporting to pop a dialog

Resolve the first problem by calling platform specific (but documented)
functions to change the CRT's behavior in g_test_init

Resolve the second by only throwing a debug exception if we're under
debugging, and just calling abort() otherwise.

This reduces the number of popups triggerd by `meson test` from
over 10 to about three on my machine, mostly in the spawn test code.
2021-12-16 20:20:56 -08:00
Philip Withnall
42a5f1d387 2.71.0
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2021-12-16 18:52:24 +00:00
Emmanuel Fleury
20c8ea1bc6 Move tests/env-test.c into glib/tests/environment.c 2021-12-16 16:32:26 +01:00
Patrick Griffis
22965a4d7d Merge branch 'wip/pwithnall/resolver-fuzzing' into 'main'
fuzzing: Add a fuzz test for parsing DNS records

See merge request GNOME/glib!2396
2021-12-16 12:47:43 +00:00
Philip Withnall
06e282e50f fuzzing: Add a fuzz test for parsing DNS records
Based on Patrick’s work to expose the parser for unit testing.

See !2134.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2021-12-16 11:26:03 +00:00