Skip to content
  • Alberto Garcia's avatar
    2cb5d2a4
    gtk: use setlocale() for LC_MESSAGES only · 2cb5d2a4
    Alberto Garcia authored
    
    
    The QEMU code is not internationalized and assumes that it runs under
    the C locale, but if we use the GTK+ UI we'll end up importing the
    locale settings from the environment. This can break things, such as
    the JSON generator and iotest 120 in locales that use a decimal comma.
    
    We do however have translations for a few simple strings for the GTK+
    menu items, so in order to run QEMU using the C locale, and yet have a
    translated UI let's use setlocale() for LC_MESSAGES only.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: default avatarAlberto Garcia <berto@igalia.com>
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    2cb5d2a4
    gtk: use setlocale() for LC_MESSAGES only
    Alberto Garcia authored
    
    
    The QEMU code is not internationalized and assumes that it runs under
    the C locale, but if we use the GTK+ UI we'll end up importing the
    locale settings from the environment. This can break things, such as
    the JSON generator and iotest 120 in locales that use a decimal comma.
    
    We do however have translations for a few simple strings for the GTK+
    menu items, so in order to run QEMU using the C locale, and yet have a
    translated UI let's use setlocale() for LC_MESSAGES only.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: default avatarAlberto Garcia <berto@igalia.com>
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Loading