From 91dcd747d15bce92e71ae90c2311b29257aabfae Mon Sep 17 00:00:00 2001 From: Zhou Qiankang Date: Fri, 26 Apr 2024 00:53:53 +0800 Subject: [PATCH] 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. --- vapi/glib-2.0.vapi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.47.2