qemu: force use little endian UCS-2

See issue https://github.com/termux/termux-packages/issues/6332.
This commit is contained in:
Leonid Pliushch 2021-01-30 01:30:58 +02:00
parent 442f8378fb
commit dbed0c1150
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 21 additions and 1 deletions

View File

@ -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",

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A generic and open source machine emulator and virtualiz
TERMUX_PKG_LICENSE="LGPL-2.1" TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>" TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=1:5.2.0 TERMUX_PKG_VERSION=1:5.2.0
TERMUX_PKG_REVISION=2 TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://download.qemu.org/qemu-${TERMUX_PKG_VERSION:2}.tar.xz TERMUX_PKG_SRCURL=https://download.qemu.org/qemu-${TERMUX_PKG_VERSION:2}.tar.xz
TERMUX_PKG_SHA256="cb18d889b628fbe637672b0326789d9b0e3b8027e0445b936537c78549df17bc" TERMUX_PKG_SHA256="cb18d889b628fbe637672b0326789d9b0e3b8027e0445b936537c78549df17bc"
TERMUX_PKG_DEPENDS="attr, glib, libbz2, libc++, libcap-ng, libcurl, libgcrypt, libiconv, libjpeg-turbo, liblzo, libnfs, libpixman, libpng, libssh, ncurses, qemu-common, resolv-conf, zlib" TERMUX_PKG_DEPENDS="attr, glib, libbz2, libc++, libcap-ng, libcurl, libgcrypt, libiconv, libjpeg-turbo, liblzo, libnfs, libpixman, libpng, libssh, ncurses, qemu-common, resolv-conf, zlib"