Control: severity -1 normal

Am 27.01.2016 um 11:13 schrieb Gianfranco Costamagna:
> control: reopen -1
> control: tags -1 patch
> 
> Hi, please revert the change, and sorry for breaking the API in the
> libsdl2 2.0.4 upload
> 
> the correct fix comes from upstream, and it is included in the
> following three commits
> https://github.com/renpy/pygame_sdl2/commit/10b13b65173207d274ffa9570ec7
> 7a1aed6bc7e8
> https://github.com/renpy/pygame_sdl2/commit/5605247b8b2c704238508a13bfc3
> 3b3e62dba852
> https://github.com/renpy/pygame_sdl2/commit/c50dd46eb332c572349b02241014
> 911d5f23004c
> 
> or to sum them in a single patch file
> 
> --- pygame-sdl2-6.99.8.orig/src/pygame_sdl2/error.pyx
> +++ pygame-sdl2-6.99.8/src/pygame_sdl2/error.pyx
> @@ -36,4 +36,4 @@ def get_error():
> 
>  def set_error(message):
>      message = bytes(message)
> -    SDL_SetError(message)
> +    SDL_SetError("%s", <char *>message)
> --- pygame-sdl2-6.99.8.orig/src/pygame_sdl2/rwobject.pyx
> +++ pygame-sdl2-6.99.8/src/pygame_sdl2/rwobject.pyx
> @@ -53,7 +53,7 @@ cdef set_error(e):
>      cdef char *msg
>      e = str(e)
>      msg = <char *> e
> -    SDL_SetError(e)
> +    SDL_SetError("%s", msg)
> 
>  cdef Sint64 python_size(SDL_RWops *context) with gil:
>      f = <object> context.hidden.unknown.data1
> 
> 
> sorry again for the break of your package!
> 

Thanks for the patch. I will apply it with the next upload.

Markus

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to