charsets: detect iconv() support in runtime

The only purpose of this is to log what we found, nothing else, as a
quick way to detect platform support for the charsets we need.
This commit is contained in:
Aleksander Morgado
2021-02-14 22:56:22 +01:00
parent 8a8e00168b
commit 4a06a02765
3 changed files with 50 additions and 0 deletions

View File

@@ -182,6 +182,9 @@ main (int argc, char *argv[])
mm_info ("ModemManager (version " MM_DIST_VERSION ") starting in %s bus...",
mm_context_get_test_session () ? "session" : "system");
/* Detect runtime charset conversion support */
mm_modem_charsets_init ();
/* Acquire name, don't allow replacement */
name_id = g_bus_own_name (mm_context_get_test_session () ? G_BUS_TYPE_SESSION : G_BUS_TYPE_SYSTEM,
MM_DBUS_SERVICE,