Peng Wu
a211ea641a
gunicode: Update the test case for Unicode 17.0.0
2025-09-17 10:25:40 +01:00
Peng Wu
cc85da3134
gunicode: Add some scripts and line break for Unicode 17.0.0
...
Co-authored-by: Philip Withnall <philip@tecnocode.co.uk >
2025-09-17 10:25:40 +01:00
Philip Withnall
86cd3cc097
Merge branch 'update-sr-translation' into 'main'
...
Update Serbian translation
See merge request GNOME/glib!4813
2025-09-17 08:05:44 +00:00
Philip Withnall
b7e4751b62
Merge branch 'main' into 'main'
...
Update Esperanto translation
See merge request GNOME/glib!4811
2025-09-17 08:03:02 +00:00
Kristjan ESPERANTO
066631e25d
Update Esperanto translation
2025-09-17 08:02:17 +02:00
Marco Trevisan
290839a3b8
Merge branch 'gutils_unlocked' into 'main'
...
gutils: Mark load_user_special_dirs unlocked
See merge request GNOME/glib!4810
2025-09-17 00:07:42 +02:00
Милош Поповић
dd79c0f8a5
Update Serbian translation
2025-09-16 23:28:38 +02:00
Tobias Stoeckmann
1daef51682
gutils: Fix file name in comment
...
The implementation can be found in gosxutils.m.
2025-09-16 19:26:09 +02:00
Tobias Stoeckmann
2515357d79
gutils: Mark load_user_special_dirs unlocked
...
The load_user_special_dirs function performs no internal locking, which
means that callers must already hold the g_utils_global lock. Since we
mark some getters as unlocked by now, do the same with
load_user_special_dirs to highlight this additional requirement.
Suggested by Michael Catanzaro
2025-09-16 19:26:06 +02:00
Michael Catanzaro
355996f241
Merge branch 'gutils_special_dirs_leak' into 'main'
...
gutils: Handle singletons in unlocked functions
Closes #3784
See merge request GNOME/glib!4808
2025-09-16 11:21:53 -05:00
Philip Withnall
1d37756f64
Merge branch 'ghash_size_uint' into 'main'
...
ghash: Fix data type related issues
Closes #672
See merge request GNOME/glib!4783
2025-09-16 16:14:41 +00:00
Tobias Stoeckmann
18a7e7b4a2
gutils: Handle singletons in unlocked functions
...
Make sure that results of build functions are stored in singletons to
avoid creating multiple instances which eventually could leak.
Fixes : #3784
2025-09-16 17:38:11 +02:00
Philip Withnall
8ca55d6524
Merge branch 'meson-add-arguments-to-all-c-like-languages' into 'main'
...
Meson: Add arguments and defines to all C-like languages
See merge request GNOME/glib!4795
2025-09-16 15:04:12 +00:00
Luca Bacci
b7f29c11bd
meson: Add arguments and defines to all C-like languages
...
...C, C++, ObjC, and ObjC++ too. It's not a problem to add
arguments to unused languages.
This means, for example, that all the defines are in place when writing
WinRT C++ code.
2025-09-16 15:22:28 +01:00
Philip Withnall
8830f7286e
Merge branch 'genum-class-values-array-length' into 'main'
...
Add missing `(array length=n_values)` annotation to `GEnumClass` / `GFlagsClass`
See merge request GNOME/glib!4803
2025-09-16 14:21:17 +00:00
Philip Withnall
a8b9c237cf
Merge branch 'gdbus-register-error-domain-out-annotation' into 'main'
...
GDBus: Add `(out)` annotation to quark in g_dbus_error_register_error_domain()
See merge request GNOME/glib!4798
2025-09-16 14:20:58 +00:00
Philip Withnall
aa04e30883
Merge branch 'gstring_replace_guint' into 'main'
...
gstring: Support large strings in g_string_replace
See merge request GNOME/glib!4790
2025-09-16 14:20:01 +00:00
Philip Withnall
0ea8880468
Merge branch 'ci-msys2-use-meson-coverage-option' into 'main'
...
CI/MSYS2: Use builtin b_coverage option
See merge request GNOME/glib!4794
2025-09-16 14:19:44 +00:00
Philip Withnall
3691e4d3d7
Merge branch 'win32-app-info-co-allow-set-foreground-window' into 'main'
...
GWin32AppInfo: Allow focus-stealing when requested via GAppLaunchContext
See merge request GNOME/glib!4759
2025-09-16 14:19:21 +00:00
Philip Withnall
3d0c3bfae8
Merge branch '3771-keyfile-invalid-escapes' into 'main'
...
gdesktopappinfo: Error out on more invalid desktop files
Closes #3771
See merge request GNOME/glib!4766
2025-09-16 14:18:58 +00:00
Philip Withnall
5b9f3fb947
Merge branch 'version-bump' into 'main'
...
build: Post-release version bump
See merge request GNOME/glib!4806
2025-09-16 11:44:44 +00:00
Philip Withnall
050bb48775
build: Post-release version bump
...
This opens up the development cycle for 2.88.
Signed-off-by: Philip Withnall <pwithnall@gnome.org >
2025-09-16 11:56:29 +01:00
Philip Withnall
958a0bccbe
Merge branch 'help-width' into 'main'
...
get_help(): Ignore width of invisible options
Closes #3781
See merge request GNOME/glib!4801
2025-09-16 10:51:14 +00:00
FeRD (Frank Dana)
bff4dcb3d8
get_help(): Ignore width of invisible options
...
When get_help() gets ready to lay out the help text into columns,
it first goes through and computes the max_width of the strings in
the left column. Problem is, it measures the width of every
available option, whether or not they'll actually be displayed.
Instead, let's use the same criteria used when deciding whether
to display an option, to decide whether or not to account for it
when computing max_width. This way, the layout is sized for the
help that's actually being produced.
Fixes #3781
2025-09-16 11:20:17 +01:00
Philip Withnall
c091c3e3f1
Merge branch 'fuzzing_special_dirs' into 'main'
...
fuzzing: Fix fuzz_special_dirs
Closes #3783
See merge request GNOME/glib!4804
2025-09-16 08:44:04 +00:00
Tobias Stoeckmann
0bebad35cf
fuzzing: Fix fuzz_special_dirs
...
Always NUL-terminate the data, which g_file_get_contents does as well.
This fixes unnecessary fuzzer warnings.
For further clarification of this requirement, rename the internally
used function.
Fixes : #3783
2025-09-16 10:28:14 +02:00
Philip Withnall
c31c4a5259
Merge branch 'special_dirs' into 'main'
...
gutils: Improve load_user_special_dirs' user-dirs.dirs parser
See merge request GNOME/glib!4800
2025-09-15 22:57:44 +00:00
Tobias Stoeckmann
ed594d819e
fuzzing: add special dirs fuzzing test
...
Split custom user-dirs.dirs parser into its own gutilsprivate.c file
for easier fuzzing support and add a fuzzing test.
2025-09-16 00:08:17 +02:00
Tobias Stoeckmann
300722b6c4
gutils: Handle huge lines in load_user_special_dirs
...
If a line is longer than G_INTMAX, still treat it correctly without
possibly provoking an out of boundary read.
2025-09-15 17:21:16 +02:00
Tobias Stoeckmann
9a2d221e90
gutils: Reject unquoted entries in load_user_special_dirs
...
If the end quote is missing, reject the entry. Please note that this
still allows entries with an uneven amount of quotes, e.g. "/"".
2025-09-15 17:21:16 +02:00
Tobias Stoeckmann
43d9e50654
gutils: Strip all trailing slahes in load_user_special_dirs
...
Do what the comment states and strip all trailing slashes. Also, do not
strip the trailing slash if it's the only character left, i.e. if it
denotes the root directory.
2025-09-15 17:21:16 +02:00
Tobias Stoeckmann
2e88bd5fdd
gutils: Only allow $HOME in load_user_special_dirs
...
Make sure that the allowed environment variable is actually HOME, not
any environment variable starting with HOME, e.g. HOMER.
2025-09-15 17:21:13 +02:00
Sebastian Dröge
2e3e3c8025
Add missing (array length=n_values)
annotation to GEnumClass
/ GFlagsClass
2025-09-15 13:41:20 +03:00
Philip Withnall
63ff527253
Merge branch 'update-tr' into 'main'
...
Update Turkish translation
See merge request GNOME/glib!4802
2025-09-15 09:24:50 +00:00
Sabri Ünal
25b5bf8ea7
Update Turkish translation
...
Approved by Emin Tufan Çetin
https://l10n.gnome.org/vertimus/glib/main/po/tr/
2025-09-14 14:31:25 +03:00
Tobias Stoeckmann
82c83a8871
gutils: Support test env in load_user_special_dirs
...
XDG_CONFIG_DIR and HOME can be overridden with test environments. Read
these variables before building them again.
It's not possible to call the getter functions directly because the
caller of load_user_special_dirs already holds a lock and locking again
is undefined behavior and could lead to deadlocks.
Separate the functionality out into unlocked functions which definitely
have to be static to not expose them. Use them while holding the lock.
2025-09-12 17:06:13 +02:00
Philip Withnall
a0f23830b0
Merge branch 'patch-1' into 'main'
...
`gio/tests/socket-listener` should depend on `libdl`
Closes #3780
See merge request GNOME/glib!4799
2025-09-11 16:53:33 +00:00
Uwe Korn
2b0f5304bd
gio/tests/socket-listener
should depend on libdl
2025-09-11 16:04:15 +00:00
Sebastian Dröge
58791ea699
GDBus: Add (out)
annotation to quark in g_dbus_error_register_error_domain()
2025-09-11 14:01:27 +03:00
Tobias Stoeckmann
c79db8f282
gstring: Support large strings in g_string_replace
...
Allow more than G_MAXUINT replacements in g_string_replace. Even
though the return value type is guint, do as many replacements
as requested if limit is 0 and return G_MAXUINT if even more
operations were performed to satisfy current ABI/API.
With input by Philip Withnall.
2025-09-10 17:39:48 +02:00
Philip Withnall
d331794de4
Merge branch 'g_strescape_oflow' into 'main'
...
gstrfuncs: Check string length in g_strescape
See merge request GNOME/glib!4791
2025-09-10 11:28:49 +00:00
Luca Bacci
f8d00c6458
ci/msys2: Use builtin b_coverage option
...
...instead of custom CFLAGS
2025-09-10 10:14:54 +02:00
Tobias Stoeckmann
b274f82963
gstrfuncs: Check string length in g_strescape
...
If the input string is too large on a 32 bit system, it is possible
to trigger an integer overflow which subsequently leads to an out of
boundary write.
2025-09-09 21:04:17 +02:00
Philip Withnall
77fe11e8b2
Merge branch 'urbalazs-main-patch-77698' into 'main'
...
Update Hungarian translation
See merge request GNOME/glib!4787
2025-09-09 09:28:52 +00:00
Balázs Úr
7a5a7a7133
Update Hungarian translation
2025-09-09 08:11:58 +00:00
Philip Withnall
eba68f0378
Merge branch 'main' into 'main'
...
Update Galician translations
See merge request GNOME/glib!4786
2025-09-08 12:23:45 +00:00
Fran Dieguez
31c519a851
Update Galician translations
2025-09-08 09:21:05 +02:00
Philip Withnall
3de88a5e31
Merge branch 'update-pt_BR' into 'main'
...
Update Brazilian Portuguese translation
See merge request GNOME/glib!4780
2025-09-07 16:02:35 +00:00
Philip Withnall
67dae8f4ad
Merge branch 'gmem_oflow_check' into 'main'
...
gmem: Replace SIZE_OVERFLOWS with g_size_checked_mul
See merge request GNOME/glib!4779
2025-09-07 15:11:02 +00:00
Philip Withnall
57b6738c6d
Merge branch 'lb90-maintainer' into 'main'
...
docs: Add Luca Bacci as a co-maintainer of the Windows code
See merge request GNOME/glib!4773
2025-09-07 15:03:17 +00:00