minikconf: explicitly set encoding to UTF-8
commitddd633e525fec68437d04b074130aedc9d461331
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 21 May 2020 15:36:16 +0000 (21 16:36 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 23 Jun 2020 14:46:05 +0000 (23 15:46 +0100)
treed085ebfba5383627a581086d0640148c630c47cd
parent171199f56f5f9bdf1e5d670d09ef1351d8f01bae
minikconf: explicitly set encoding to UTF-8

QEMU currently only has ASCII Kconfig files but Linux actually uses
UTF-8. Explicitly specify the encoding and that we're doing text file
I/O.

It's unclear whether or not QEMU will ever need Unicode in its Kconfig
files. If we start using the help text then it will become an issue
sooner or later. Make this change now for consistency with Linux
Kconfig.

Reported-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200521153616.307100-1-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/minikconf.py