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
f7b8cb60
Kaydet (Commit)
f7b8cb60
authored
Eyl 29, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
_io.textio: fix character type, use Py_UCS4 instead of Py_UNICODE
üst
0058b860
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
textio.c
Modules/_io/textio.c
+3
-3
No files found.
Modules/_io/textio.c
Dosyayı görüntüle @
f7b8cb60
...
...
@@ -347,7 +347,7 @@ _PyIncrementalNewlineDecoder_decode(PyObject *_self,
memchr
(
in_str
,
'\n'
,
PyUnicode_KIND_SIZE
(
kind
,
len
))
!=
NULL
)
{
Py_ssize_t
i
=
0
;
for
(;;)
{
Py_U
NICODE
c
;
Py_U
CS4
c
;
/* Fast loop for non-control characters */
while
(
PyUnicode_READ
(
kind
,
in_str
,
i
)
>
'\n'
)
i
++
;
...
...
@@ -1570,7 +1570,7 @@ textiowrapper_read(textio *self, PyObject *args)
}
/* NOTE: `end` must point to the real end of the Py_U
NICODE
storage,
/* NOTE: `end` must point to the real end of the Py_U
CS4
storage,
that is to the NUL character. Otherwise the function will produce
incorrect results. */
static
char
*
...
...
@@ -1614,7 +1614,7 @@ _PyIO_find_line_ending(
for
(;;)
{
Py_UCS4
ch
;
/* Fast path for non-control chars. The loop always ends
since the
Py_UNICODE storage
is NUL-terminated. */
since the
Unicode string
is NUL-terminated. */
while
(
PyUnicode_READ
(
kind
,
s
,
0
)
>
'\r'
)
s
+=
size
;
if
(
s
>=
end
)
{
...
...
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