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
ab2eb0ee
Kaydet (Commit)
ab2eb0ee
authored
Haz 05, 2010
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a NEWS entry for r81758 and clarify a comment.
üst
e57e50c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
test_unicode.py
Lib/test/test_unicode.py
+3
-3
NEWS
Misc/NEWS
+8
-0
No files found.
Lib/test/test_unicode.py
Dosyayı görüntüle @
ab2eb0ee
...
...
@@ -670,9 +670,9 @@ class UnicodeTest(
(
'
\xF4
'
+
cb
+
'
\xBF\xBF
'
)
.
decode
,
'utf-8'
)
def
test_issue8271
(
self
):
# Issue #8271:
when a byte sequence is invalid, only the start byte
#
and all the valid continuation bytes should be replaced by U+FFFD,
#
not
the number of bytes specified by the start byte.
# Issue #8271:
during the decoding of an invalid UTF-8 byte sequence,
#
only the start byte and the continuation byte(s) are now considered
#
invalid, instead of
the number of bytes specified by the start byte.
# See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (page 95,
# table 3-8, Row 2) for more information about the algorithm used.
FFFD
=
u'
\ufffd
'
...
...
Misc/NEWS
Dosyayı görüntüle @
ab2eb0ee
...
...
@@ -12,6 +12,14 @@ What's New in Python 2.7 Release Candidate 1?
Core and Builtins
-----------------
- Issue #8271: during the decoding of an invalid UTF-8 byte sequence, only the
start byte and the continuation byte(s) are now considered invalid, instead
of the number of bytes specified by the start byte.
E.g.: '\xf1\x80AB'.decode('utf-8', 'replace') now returns u'\ufffdAB' and
replaces with U+FFFD only the start byte ('\xf1') and the continuation byte
('\x80') even if '\xf1' is the start byte of a 4-bytes sequence.
Previous versions returned a single u'\ufffd'.
- Issue #8627: Remove bogus "Overriding __cmp__ blocks inheritance of
__hash__ in 3.x" warning. Also fix "XXX undetected error" that
arises from the "Overriding __eq__ blocks inheritance ..." warning
...
...
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