qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] b7b664: ui/curses: do not assume wchar_t cont


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] b7b664: ui/curses: do not assume wchar_t contains unicode
Date: Fri, 17 May 2019 10:15:01 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: b7b664a4fe9a955338f2e11a0f7433b29c8cbad0
      
https://github.com/qemu/qemu/commit/b7b664a4fe9a955338f2e11a0f7433b29c8cbad0
  Author: Samuel Thibault <address@hidden>
  Date:   2019-05-17 (Fri, 17 May 2019)

  Changed paths:
    M ui/curses.c

  Log Message:
  -----------
  ui/curses: do not assume wchar_t contains unicode

E.g. BSD and Solaris even use locale-specific encoding there.

We thus have to go through the native multibyte representation and use
mbrtowc/wcrtomb to make a proper conversion.

Signed-off-by: Samuel Thibault <address@hidden>
Tested-by: Kamil Rytarowski <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 962cf8fd4faefb2d5f425abc5c988ea7ba2bbce9
      
https://github.com/qemu/qemu/commit/962cf8fd4faefb2d5f425abc5c988ea7ba2bbce9
  Author: Samuel Thibault <address@hidden>
  Date:   2019-05-17 (Fri, 17 May 2019)

  Changed paths:
    M ui/curses.c

  Log Message:
  -----------
  ui/curses: manipulate cchar_t with standard curses functions

The chars/attr fields are curses internals, setcchar and getcchar have
to be used instead.

Signed-off-by: Samuel Thibault <address@hidden>
Tested-by: Kamil Rytarowski <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: bfafa473ede36f95a71c46271cff07fde1854f2a
      
https://github.com/qemu/qemu/commit/bfafa473ede36f95a71c46271cff07fde1854f2a
  Author: HOU Qiming <address@hidden>
  Date:   2019-05-17 (Fri, 17 May 2019)

  Changed paths:
    M ui/console-gl.c

  Log Message:
  -----------
  ui/console: Precautionary glBindTexture and surface->texture validation in 
surface_gl_update_texture

In a GVT-g setup with dmabuf and GTK GUI, the current 2D texture at
surface_gl_update_texture is not necessarily
surface->texture. Adding a glBindTexture fixes related crashes and
artifacts, and is generally more secure.

Signed-off-by: HOU Qiming <address@hidden>
Tested-by: Marcel Apfelbaum<address@hidden>
Signed-off-by: Marcel Apfelbaum <address@hidden>
Message-id: address@hidden
[fixed malformed patch, rebase to master]
Signed-off-by: Marcel Apfelbaum <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 5fff13f245cddd3bc260dfe6ebe1b1f05b72116f
      
https://github.com/qemu/qemu/commit/5fff13f245cddd3bc260dfe6ebe1b1f05b72116f
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-17 (Fri, 17 May 2019)

  Changed paths:
    M ui/kbd-state.c

  Log Message:
  -----------
  kbd-state: fix autorepeat handling

When allowing multiple down-events in a row (key autorepeat) we can't
use change_bit() any more to update the state, because autorepeat events
don't change the key state.  We have to explicitly use set_bit() and
clear_bit() instead.

Cc: address@hidden
Fixes: 35921860156e kbd-state: don't block auto-repeat events
Buglink: https://bugs.launchpad.net/qemu/+bug/1828272
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: 1b46b4daa6fbf45eddcf77877379a0afac341df9
      
https://github.com/qemu/qemu/commit/1b46b4daa6fbf45eddcf77877379a0afac341df9
  Author: Peter Maydell <address@hidden>
  Date:   2019-05-17 (Fri, 17 May 2019)

  Changed paths:
    M ui/console-gl.c
    M ui/curses.c
    M ui/kbd-state.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/kraxel/tags/ui-20190517-pull-request' 
into staging

ui: bugfixes for curses, opengl console and kbd state tracker.

# gpg: Signature made Fri 17 May 2019 17:12:30 BST
# gpg:                using RSA key 4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>" [full]
# gpg:                 aka "Gerd Hoffmann <address@hidden>" [full]
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>" [full]
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* remotes/kraxel/tags/ui-20190517-pull-request:
  kbd-state: fix autorepeat handling
  ui/console: Precautionary glBindTexture and surface->texture validation in 
surface_gl_update_texture
  ui/curses: manipulate cchar_t with standard curses functions
  ui/curses: do not assume wchar_t contains unicode

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/27cb89d1d321...1b46b4daa6fb



reply via email to

[Prev in Thread] Current Thread [Next in Thread]