diff --git a/x11-packages/qemu-system-x86-64/0014-force-ucs2-little-endian.patch b/x11-packages/qemu-system-x86-64/0014-force-ucs2-little-endian.patch new file mode 100644 index 000000000..8e96be423 --- /dev/null +++ b/x11-packages/qemu-system-x86-64/0014-force-ucs2-little-endian.patch @@ -0,0 +1,20 @@ +diff -uNr qemu-5.2.0/ui/curses.c qemu-5.2.0.mod/ui/curses.c +--- qemu-5.2.0/ui/curses.c 2020-12-08 18:59:44.000000000 +0200 ++++ qemu-5.2.0.mod/ui/curses.c 2021-01-30 01:29:40.987065827 +0200 +@@ -566,14 +566,14 @@ + 0x25bc + }; + +- ucs2_to_nativecharset = iconv_open(local_codeset, "UCS-2"); ++ ucs2_to_nativecharset = iconv_open(local_codeset, "UCS-2LE"); + if (ucs2_to_nativecharset == (iconv_t) -1) { + fprintf(stderr, "Could not convert font glyphs from UCS-2: '%s'\n", + strerror(errno)); + exit(1); + } + +- nativecharset_to_ucs2 = iconv_open("UCS-2", local_codeset); ++ nativecharset_to_ucs2 = iconv_open("UCS-2LE", local_codeset); + if (nativecharset_to_ucs2 == (iconv_t) -1) { + iconv_close(ucs2_to_nativecharset); + fprintf(stderr, "Could not convert font glyphs to UCS-2: '%s'\n", diff --git a/x11-packages/qemu-system-x86-64/build.sh b/x11-packages/qemu-system-x86-64/build.sh index da41d3c80..52560a75b 100644 --- a/x11-packages/qemu-system-x86-64/build.sh +++ b/x11-packages/qemu-system-x86-64/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A generic and open source machine emulator and virtualiz TERMUX_PKG_LICENSE="LGPL-2.1" TERMUX_PKG_MAINTAINER="Leonid Pliushch " TERMUX_PKG_VERSION=1:5.2.0 -TERMUX_PKG_REVISION=3 +TERMUX_PKG_REVISION=4 TERMUX_PKG_SRCURL=https://download.qemu.org/qemu-${TERMUX_PKG_VERSION:2}.tar.xz TERMUX_PKG_SHA256="cb18d889b628fbe637672b0326789d9b0e3b8027e0445b936537c78549df17bc" TERMUX_PKG_DEPENDS="attr, glib, libbz2, libc++, libcap-ng, libcurl, libgcrypt, libiconv, libjpeg-turbo, liblzo, libnfs, libpixman, libpng, libssh, libx11, ncurses, qemu-common, resolv-conf, sdl2, sdl2-image, zlib"