]> 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)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 29 May 2024 08:35:35 +0000 (10:35 +0200)
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 26656f14f84eca33744a25572fb5c9d934d85cc4..6706eb18ae49da8c90a689baf969e5ae5f08ffa6 100644 (file)
@@ -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]