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
7c924ec9
Kaydet (Commit)
7c924ec9
authored
Mar 04, 2010
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review
Issue #29. PR #29 was released in february 2004!
üst
e689a889
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
test_unicodedata.py
Lib/test/test_unicodedata.py
+5
-0
NEWS
Misc/NEWS
+3
-0
unicodedata.c
Modules/unicodedata.c
+1
-1
No files found.
Lib/test/test_unicodedata.py
Dosyayı görüntüle @
7c924ec9
...
...
@@ -186,6 +186,11 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest):
# The rest can be found in test_normalization.py
# which requires an external file.
def
test_pr29
(
self
):
# http://www.unicode.org/review/pr-29.html
for
text
in
(
u"
\u0b47\u0300\u0b3e
"
,
u"
\u1100\u0300\u1161
"
):
self
.
assertEqual
(
self
.
db
.
normalize
(
'NFC'
,
text
),
text
)
def
test_east_asian_width
(
self
):
eaw
=
self
.
db
.
east_asian_width
self
.
assertRaises
(
TypeError
,
eaw
,
'a'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
7c924ec9
...
...
@@ -41,6 +41,9 @@ Core and Builtins
Library
-------
- Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review
Issue #29
- Issue #7494: fix a crash in _lsprof (cProfile) after clearing the profiler,
reset also the pointer to the current pointer context.
...
...
Modules/unicodedata.c
Dosyayı görüntüle @
7c924ec9
...
...
@@ -682,7 +682,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
comb
=
0
;
while
(
i1
<
end
)
{
int
comb1
=
_getrecord_ex
(
*
i1
)
->
combining
;
if
(
comb
1
&&
comb
==
comb1
)
{
if
(
comb
&&
(
comb1
==
0
||
comb
==
comb1
)
)
{
/* Character is blocked. */
i1
++
;
continue
;
...
...
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