Commit Graph

18015 Commits

Author SHA1 Message Date
Iain Lane
e4227408b2 tests/network-monitor: Always use the dummy proxy resolver
If glib-networking is installed and built with libproxy support, this
test will use it. If a proxy is set in the environment, we might get
correctly told to go through it for certain accesses. However, this isn't
going to work, because the testsuite monkeys with the network monitor to
tell it that all addresses - including the proxy - aren't reachable.

We're trying to check if adding networks to a GNetworkMonitor works in
general. Proxies just get in the way here, so let's use the built in
dummy proxy resolver which just tells us that all URLs are directly
accessible.

https://bugzilla.gnome.org/show_bug.cgi?id=794801
2018-04-10 10:36:42 +01:00
Matthias Clasen
d0364b4438 2.56.1 2018-04-06 22:35:38 -04:00
Matej Urbančič
ecabc6e21c Updated Slovenian translation 2018-03-27 22:32:28 +02:00
Piotr Drąg
ad11be086a Spell Portuguese month and weekday names in lowercase
https://bugzilla.gnome.org/show_bug.cgi?id=794686
2018-03-27 20:50:06 +02:00
Ting-Wei Lan
5ef27d0e26 gpollfilemonitor: Fix use-after-free caused by leaking GSource
https://bugzilla.gnome.org/show_bug.cgi?id=794528
2018-03-26 10:58:37 +01:00
Sebastian
fe939d2b70 gthreadedresolver: Fix compilation with res_nclose() but no res_nquery()
Some very odd systems have the functions to initialise and destroy a
struct __res_state, but apparently not to do a DNS query using it. Fix
the compilation on those systems.

https://bugzilla.gnome.org/show_bug.cgi?id=794606
2018-03-26 10:51:13 +01:00
Sam Spilsbury
3c5e8a65fd glib-mkenums: Don't go into an infinite loop trying to find a matching {
If we reach EOF before this happens, error out as opposed to
looping around forever.

https://bugzilla.gnome.org/show_bug.cgi?id=794506
2018-03-21 15:12:47 +00:00
Sam Spilsbury
145e45f55d glib-mkenums: Don't treat typedef enum _SomeIdentifier {} as syntax error
Previously we were only detecting typedef\*senum\s*\{, which does not
handle the case where there is an entifier for the enum itself but
not the typedef. glib-mkenums would then attempt to read the next line
looking for a matching {, but in vain.

https://bugzilla.gnome.org/show_bug.cgi?id=794506
2018-03-21 15:12:47 +00:00
Frank Dana
09f3918952 Remove duplicated option in gio.xml
The gio(1) man page entry for the tree subcommand lists '-h' twice under its Options, because that flag was duplicated in the source xml.

https://bugzilla.gnome.org/show_bug.cgi?id=794473
2018-03-21 14:39:51 +00:00
Dušan Kazik
39a01037dd Update Slovak translation 2018-03-17 11:34:51 +00:00
Chun-wei Fan
c20c1b548b Fix Visual Studio projects
We are transitioning to Meson for Visual Studio builds, but since the
Visual Studio projects are still around, we ought to keep them
up-to-date (and these projects are needed to build for Visual Studio
2008, at least for x64 builds).

Adapt to the source additions and merges for building
gio-querymodules.exe and gspawn-win[32|64]-helper-console.exe.
2018-03-16 17:29:35 +08:00
Philip Withnall
66948ae231 gapplication: Tighten up application ID validation
Tighten up the validation of application IDs so they are always exactly
D-Bus well-known names. This is a slight change to the accepted format,
but since anyone using the API with an application ID which was
previously valid, but which was not a valid D-Bus well-known name, would
have received an error from D-Bus when their application tried to
register on the bus, I think this break is acceptable.

It will affect any applications which have application IDs which are not
valid D-Bus well-known names, and which use the G_APPLICATION_NON_UNIQUE
flag. From a quick search in Debian Codesearch, no C applications use
that flag.

Update the documentation to use the rules from the D-Bus specification,
including the latest advice discouraging use of hyphens:

https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus

Update the tests:
 • Add the examples from the documentation to validate them.
 • Especially the venerable 7-zip.org example.
 • Move a couple of tests from expected-failure to expected-success:
   they are valid D-Bus well-known names even if they’re a bit weird.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=793400
2018-03-13 12:51:38 +00:00
Philip Withnall
d754e017ea tests: Use modern test assertions in GApplication test
This will make the assertion failure messages a little more useful, and
prevent the assertions being compiled out with G_DISABLE_ASSERT.
Introduces no functional changes.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=793400
2018-03-13 12:51:38 +00:00
Michael Olbrich
abe329343f gobject_gdb.py: 'address' is a property of gdb.Value not a function
'address' started out as a function, but it was changed to a property
before the gdb Python support was release with gdb 7.0.

https://bugzilla.gnome.org/show_bug.cgi?id=794194
2018-03-13 11:28:06 +00:00
Rafal Luzynski
987bf5bbeb gdatetime: Add missing #define WEEKDAY_FULL_IS_LOCALE
One more #define WEEKDAY_FULL_IS_LOCALE was missing from the commit
12f11090dc.

https://bugzilla.gnome.org/show_bug.cgi?id=793578
2018-03-13 10:52:08 +00:00
Rafal Luzynski
9cadb90b35 tests: Compare month names case-insensitively
This patch relaxes the comparison rules and allow the month names to be
in a mixed case.

Translators should be allowed to provide the month names in a different
case (lower/upper case, not grammatical case) from the content of glibc
because it is disputable at the moment whether the month names should
follow the language rules strictly and be titlecased only if it is
obligatory to titlecase them or they should be also titlecased in the
standalone case. Hopefully in future a conversion specifier will be
invented to control the upper/lower case individually.

https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-13 10:49:38 +00:00
Rafal Luzynski
7fe793e125 tests: Update month names
Update the abbreviated month names in the test to match the actual content
of the translated *.po files for Greek and Lithuanian.

https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-13 10:49:38 +00:00
Daniel Mustieles
423bf53b04 Updated Spanish translation 2018-03-13 09:18:18 +01:00
Matthias Clasen
f58d46e39f 2.56.0 2018-03-12 16:52:13 -04:00
Philip Withnall
c4f58e362e tests: Skip the gdatetime month names test when running uninstalled
It needs the translations to be installed. See the comment added to the
code.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=794180
2018-03-12 19:24:15 +00:00
Philip Withnall
36af567045 tests: Ensure gettext strings are loaded in UTF-8 in gdatetime.c
See the previous commit. By convention, GLib assumes strings loaded from
gettext are always in UTF-8, but we do need to tell gettext this. In
most other tests, it doesn’t matter; but in the gdatetime test, we test
re-encoding month names from EUC-JP, so we need to ensure the
translations start in UTF-8 correctly.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=793578
2018-03-12 19:22:13 +00:00
Philip Withnall
12f11090dc gdatetime: Fix locale handling for nl_langinfo() calls
With the various macros we use to provide fallbacks for missing
nl_langinfo() fields, the locale handling can become quite complex:
nl_langinfo() returns strings encoded in the current locale, but C_()
returns strings encoded in UTF-8 (by GLib convention — you do actually
need to call bind_textdomain_codeset() to achieve this).

There are various format specifiers, especially with the new %Ob, %OB,
%Oh specifiers, which conditionally call nl_langinfo() or something
based on C_(). This makes encoding handling difficult.

Add additional macros which indicate whether the macros they’re paired
with return something encoded in the current locale, or encoded in
UTF-8. The user of the macro can then use these to work out whether to
re-encode.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=793578
2018-03-12 19:22:13 +00:00
Mart Raudsepp
f59c379c7a Update Estonian translation 2018-03-12 16:25:24 +00:00
Justin van Steijn
7c1e2b7cef Update Dutch translation 2018-03-10 15:46:55 +00:00
Emin Tufan Çetin
5d93dd63e8 Update Turkish translation 2018-03-08 12:42:22 +00:00
Aurimas Černius
76f770ad98 More corrections in Lithuanian date formats 2018-03-05 22:57:16 +02:00
Aurimas Černius
8b89331d5a Updated Lithuanian translation 2018-03-05 22:48:26 +02:00
Dr. Michael Lauer
cc50c19544 configure.ac: link to AppKit on macOS.
This is actually only necessary for gio, not for the other libraries.

https://bugzilla.gnome.org/show_bug.cgi?id=793565
2018-03-05 16:48:07 +00:00
Piotr Drąg
b03c37cf3b Sync abbreviated month names in Greek translation with CLDR
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-05 17:13:51 +01:00
Piotr Drąg
0040ba008b Add month names with day to Chinese (Taiwan) translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
20d8cb3374 Add month names with day to Chinese (Hong Kong) translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
a998018b5f Add month names with day to Chinese (Simplified) translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
58e00dd89e Add month names with day to Vietnamese translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
24f2398c60 Add month names with day to Ukrainian translation
Ukrainian uses genitive for month names with day.

https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
e663b246c9 Add month names with day to Uyghur translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
05b7d38a57 Add month names with day to Turkish translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
ca7c43e54d Add month names with day to Thai translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
b9c332888a Add month names with day to Tajik translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
44a96b6462 Add month names with day to Telugu translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
c5123298b3 Add month names with day to Tamil translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
360bf29202 Add month names with day to Slovenian translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
1144cfcd75 Add month names with day to Slovak translation
Slovak uses genitive for month names with day.

https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
5f865be08b Add month names with day to Russian translation
Russian uses genitive for month names with day.

https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
45c3e87d63 Add month names with day to Romanian translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
6a06647a03 Add month names with day to Portuguese translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
6e26ac68a0 Add month names with day to Punjabi translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
99c9feb4c1 Add month names with day to Odia translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
7dc3c8f9dc Add month names with day to Occitan translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
d5933a40af Add month names with day to Nepali translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00
Piotr Drąg
a4e950a12f Add month names with day to Norwegian bokmål translation
https://bugzilla.gnome.org/show_bug.cgi?id=793645
2018-03-04 16:19:53 +01:00