Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
278fc50c
Kaydet (Commit)
278fc50c
authored
Tem 19, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#3303: fix crash with invalid Py_DECREF in strcoll().
üst
6b41a8e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
+22
-9
test_locale.py
Lib/test/test_locale.py
+10
-1
NEWS
Misc/NEWS
+9
-7
_localemodule.c
Modules/_localemodule.c
+3
-1
No files found.
Lib/test/test_locale.py
Dosyayı görüntüle @
278fc50c
from
test.test_support
import
verbose
,
TestSkipped
from
test.test_support
import
verbose
,
TestSkipped
,
TestFailed
import
locale
import
sys
...
...
@@ -113,3 +113,12 @@ else:
teststrop
(
'
\xed\x95\xa0
'
,
'upper'
,
'
\xed\x95\xa0
'
)
finally
:
locale
.
setlocale
(
locale
.
LC_CTYPE
,
oldlocale
)
if
hasattr
(
locale
,
"strcoll"
):
# test crasher from bug #3303
try
:
locale
.
strcoll
(
u"a"
,
None
)
except
TypeError
:
pass
else
:
raise
TestFailed
(
"TypeError not raised"
)
Misc/NEWS
Dosyayı görüntüle @
278fc50c
...
...
@@ -56,17 +56,20 @@ Core and Builtins
slice(None, 10, -1).indices(10) returns (9, 9, -1) instead of (9,
10, -1).
- Issue #3219: Calling a function with repeated keyword arguments,
f(a=2, a=23),
would not cause a syntax error. This was a regression from 2.4 caused by the
switch to the new compiler.
- Issue #3219: Calling a function with repeated keyword arguments,
f(a=2, a=23), would not cause a syntax error. This was a regression
from 2.4 caused by the
switch to the new compiler.
- Issue #2862: Make int and float freelist management consistent with
other
freelists. Changes their CompactFreeList apis into ClearFreeList apis and
calls them via gc.collect().
- Issue #2862: Make int and float freelist management consistent with
other freelists. Changes their CompactFreeList apis into
ClearFreeList apis and
calls them via gc.collect().
Library
-------
- Issue #3303: Fix a crash in locale.strcoll() when calling it with
invalid arguments.
- Issue #3302: Fix several crashes when calling locale's gettext functions
with None arguments.
...
...
@@ -145,7 +148,6 @@ Tests
and is now better documented. Explicit unit tests for this context manager
have been added to test_warnings.
Build
-----
...
...
Modules/_localemodule.c
Dosyayı görüntüle @
278fc50c
...
...
@@ -301,7 +301,9 @@ PyLocale_strcoll(PyObject* self, PyObject* args)
if
(
!
PyUnicode_Check
(
os2
))
{
os2
=
PyUnicode_FromObject
(
os2
);
if
(
!
os2
)
{
Py_DECREF
(
os1
);
if
(
rel1
)
{
Py_DECREF
(
os1
);
}
return
NULL
;
}
rel2
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment