[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] vl: set LC_CTYPE early in main() for all cod
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v2] vl: set LC_CTYPE early in main() for all code |
Date: |
Tue, 16 Apr 2019 21:19:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Daniel P. Berrangé <address@hidden> writes:
[...]
> I think that's fundamentally the wrong way around. Most stuff *should*
> be locale dependant, otherwise any interaction with the host OS is
> likely to use incorrect localization. It isn't practical to put a
> uselocale() call around every place that opens a filename. There are
> a few places where QEMU should be locale indepandant such as the QMP
> and guest OS ABI sensitive things, which should take account of it.
All right, you convinced me. The problem is even bigger than I thought.
That means the return on investment in this area is even poorer than I
thought.
I don't think we should try to support anything but ASCII and UTF-8.