]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Fix the binding of `get_console_charset`
authorZhou Qiankang <wszqkzqk@qq.com>
Thu, 25 Apr 2024 16:53:53 +0000 (00:53 +0800)
committerZhou Qiankang <wszqkzqk@qq.com>
Thu, 25 Apr 2024 16:56:18 +0000 (16:56 +0000)
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

index dc523187b3c2086e3df45f2dbb04184edae407c2..a94e92fdf0e2a5cf2ec445f631f246247130df85 100644 (file)
@@ -3025,7 +3025,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]