[issue39859] set_herror should not throw away constness of hstrerror

2020-03-05 Thread miss-islington
miss-islington added the comment: New changeset e63117a84ef11083be86db7afb2ac2789491ca09 by Andy Lester in branch 'master': closes bpo-39859: Do not downcast result of hstrerror (GH-18790) https://github.com/python/cpython/commit/e63117a84ef11083be86db7afb2ac2789491ca09 -- nosy:

[issue39859] set_herror should not throw away constness of hstrerror

2020-03-04 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +18147 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18790 ___ Python tracker ___

[issue39859] set_herror should not throw away constness of hstrerror

2020-03-04 Thread Andy Lester
New submission from Andy Lester : set_herror builds a string by calling hstrerror but downcasts its return value to char *. It should be const char *. -- components: Interpreter Core messages: 363418 nosy: petdance priority: normal severity: normal status: open title: set_herror