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
99f27793
Kaydet (Commit)
99f27793
authored
Nis 26, 2009
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #4971: Fix titlecase for characters that are their own
titlecase, but not their own uppercase.
üst
068f0656
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
test_unicodedata.py
Lib/test/test_unicodedata.py
+6
-1
NEWS
Misc/NEWS
+3
-0
unicodectype.c
Objects/unicodectype.c
+1
-6
No files found.
Lib/test/test_unicodedata.py
Dosyayı görüntüle @
99f27793
...
...
@@ -20,7 +20,7 @@ encoding = 'utf-8'
class
UnicodeMethodsTest
(
unittest
.
TestCase
):
# update this, if the database changes
expectedchecksum
=
'
b7db9b5f1d804976fa921d2009cbef6f025620c1
'
expectedchecksum
=
'
6ec65b65835614ec00634c674bba0e50cd32c189
'
def
test_method_checksum
(
self
):
h
=
hashlib
.
sha1
()
...
...
@@ -270,6 +270,11 @@ class UnicodeMiscTest(UnicodeDatabaseTest):
[
0
]
)
def
test_buf_4971
(
self
):
# LETTER DZ WITH CARON: DZ, Dz, dz
self
.
assertEqual
(
u"
\u01c4
"
.
title
(),
u"
\u01c5
"
)
self
.
assertEqual
(
u"
\u01c5
"
.
title
(),
u"
\u01c5
"
)
self
.
assertEqual
(
u"
\u01c6
"
.
title
(),
u"
\u01c5
"
)
def
test_main
():
test
.
test_support
.
run_unittest
(
...
...
Misc/NEWS
Dosyayı görüntüle @
99f27793
...
...
@@ -12,6 +12,9 @@ What's New in Python 2.7 alpha 1
Core and Builtins
-----------------
- Issue #4971: Fix titlecase for characters that are their own
titlecase, but not their own uppercase.
- Issue #5835: Deprecate PyOS_ascii_formatd and replace it with
_PyOS_double_to_string or PyOS_double_to_string.
...
...
Objects/unicodectype.c
Dosyayı görüntüle @
99f27793
...
...
@@ -76,12 +76,7 @@ int _PyUnicode_IsLinebreak(register const Py_UNICODE ch)
Py_UNICODE
_PyUnicode_ToTitlecase
(
register
Py_UNICODE
ch
)
{
const
_PyUnicode_TypeRecord
*
ctype
=
gettyperecord
(
ch
);
int
delta
;
if
(
ctype
->
title
)
delta
=
ctype
->
title
;
else
delta
=
ctype
->
upper
;
int
delta
=
ctype
->
title
;
if
(
ctype
->
flags
&
NODELTA_MASK
)
return
delta
;
...
...
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