mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962)
Complete the update to libmpdec-2.5.1. Co-authored-by: Stefan Krah <skrah@bytereef.org>
This commit is contained in:
parent
a7ff6df60c
commit
73b20ae2fb
26 changed files with 1966 additions and 113 deletions
|
|
@ -3293,7 +3293,7 @@ dec_format(PyObject *dec, PyObject *args)
|
|||
}
|
||||
else {
|
||||
size_t n = strlen(spec.dot);
|
||||
if (n > 1 || (n == 1 && !isascii((uchar)spec.dot[0]))) {
|
||||
if (n > 1 || (n == 1 && !isascii((unsigned char)spec.dot[0]))) {
|
||||
/* fix locale dependent non-ascii characters */
|
||||
dot = dotsep_as_utf8(spec.dot);
|
||||
if (dot == NULL) {
|
||||
|
|
@ -3302,7 +3302,7 @@ dec_format(PyObject *dec, PyObject *args)
|
|||
spec.dot = PyBytes_AS_STRING(dot);
|
||||
}
|
||||
n = strlen(spec.sep);
|
||||
if (n > 1 || (n == 1 && !isascii((uchar)spec.sep[0]))) {
|
||||
if (n > 1 || (n == 1 && !isascii((unsigned char)spec.sep[0]))) {
|
||||
/* fix locale dependent non-ascii characters */
|
||||
sep = dotsep_as_utf8(spec.sep);
|
||||
if (sep == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue