From: Zhou Qiankang Date: Thu, 25 Apr 2024 16:53:53 +0000 (+0800) Subject: glib-2.0: Fix the binding of `get_console_charset` X-Git-Tag: 0.56.18~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91dcd747d15bce92e71ae90c2311b29257aabfae;p=thirdparty%2Fvala.git glib-2.0: Fix the binding of `get_console_charset` The parameters of `g_get_console_charset` is `const char**`, the same as `g_get_charset`, is a NUL terminated UTF-8 string. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 26656f14f..6706eb18a 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -3031,7 +3031,7 @@ namespace GLib { public static string convert_with_iconv (string str, ssize_t len, IConv converter, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError; public static bool get_charset (out unowned string charset); [Version (since = "2.62")] - public static bool get_console_charset ([CCode (array_length = false, array_null_terminated = true)] out unowned string[] charsets); + public static bool get_console_charset (out unowned string charset); public static bool get_filename_charsets ([CCode (array_length = false, array_null_terminated = true)] out unowned string[] charsets); [SimpleType]