Skip to content

Commit

Permalink
qemu: force use little endian UCS-2
Browse files Browse the repository at this point in the history
See issue #6332.
  • Loading branch information
Leonid Pliushch committed Jan 29, 2021
1 parent 442f837 commit dbed0c1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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",
2 changes: 1 addition & 1 deletion packages/qemu-system-x86-64-headless/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <leonid.pliushch@gmail.com>"
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_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"
Expand Down

0 comments on commit dbed0c1

Please sign in to comment.