Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xwininfo/dist Adapt xwininfo for POSIX iconv(3)
details: https://anonhg.NetBSD.org/xsrc/rev/60ce8084e8e9
branches: trunk
changeset: 10407:60ce8084e8e9
user: kamil <kamil%NetBSD.org@localhost>
date: Thu Oct 24 18:19:27 2019 +0000
description:
Adapt xwininfo for POSIX iconv(3)
diffstat:
external/mit/xwininfo/dist/xwininfo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r af4a1a6abd1e -r 60ce8084e8e9 external/mit/xwininfo/dist/xwininfo.c
--- a/external/mit/xwininfo/dist/xwininfo.c Wed Oct 23 00:06:07 2019 +0000
+++ b/external/mit/xwininfo/dist/xwininfo.c Thu Oct 24 18:19:27 2019 +0000
@@ -251,7 +251,7 @@
static iconv_t iconv_from_utf8;
#endif
static const char *user_encoding;
-static void print_utf8 (const char *, const char *, size_t, const char *);
+static void print_utf8 (const char *, char *, size_t, const char *);
static char *get_friendly_name (const char *, const char *);
static xcb_connection_t *dpy;
@@ -850,7 +850,7 @@
if (wm_name_encoding == XCB_ATOM_STRING) {
printf (" \"%.*s\"", wm_name_len, wm_name);
} else if (wm_name_encoding == atom_utf8_string) {
- print_utf8 (" \"", wm_name, wm_name_len, "\"");
+ print_utf8 (" \"", (char *) wm_name, wm_name_len, "\"");
} else {
/* Encodings we don't support, including COMPOUND_TEXT */
const char *enc_name = Get_Atom_Name (dpy, wm_name_encoding);
@@ -1887,7 +1887,7 @@
* Length of the string is specified in bytes, or -1 for going until '\0'
*/
static void
-print_utf8 (const char *prefix, const char *u8str, size_t length, const char *suffix)
+print_utf8 (const char *prefix, char *u8str, size_t length, const char *suffix)
{
size_t inlen = length;
Home |
Main Index |
Thread Index |
Old Index