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
8c67fdd2
Kaydet (Commit)
8c67fdd2
authored
Şub 05, 2017
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge from 3.6
üst
d2f4404b
a7e16488
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
winconsoleio.c
Modules/_io/winconsoleio.c
+13
-1
No files found.
Modules/_io/winconsoleio.c
Dosyayı görüntüle @
8c67fdd2
...
...
@@ -86,6 +86,19 @@ char _PyIO_get_console_type(PyObject *path_or_fd) {
return
'\0'
;
}
char
m
=
'\0'
;
if
(
!
_wcsicmp
(
decoded_wstr
,
L"CONIN$"
))
{
m
=
'r'
;
}
else
if
(
!
_wcsicmp
(
decoded_wstr
,
L"CONOUT$"
))
{
m
=
'w'
;
}
else
if
(
!
_wcsicmp
(
decoded_wstr
,
L"CON"
))
{
m
=
'x'
;
}
if
(
m
)
{
PyMem_Free
(
decoded_wstr
);
return
m
;
}
DWORD
length
;
wchar_t
name_buf
[
MAX_PATH
],
*
pname_buf
=
name_buf
;
...
...
@@ -99,7 +112,6 @@ char _PyIO_get_console_type(PyObject *path_or_fd) {
}
PyMem_Free
(
decoded_wstr
);
char
m
=
'\0'
;
if
(
length
)
{
wchar_t
*
name
=
pname_buf
;
if
(
length
>=
4
&&
name
[
3
]
==
L'\\'
&&
...
...
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