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
ed8ba144
Kaydet (Commit)
ed8ba144
authored
Eki 04, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove all other uses of the C tolower()/toupper() which could break with a Turkish locale.
üst
1665d2c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
_tkinter.c
Modules/_tkinter.c
+2
-2
binascii.c
Modules/binascii.c
+2
-2
unicodedata.c
Modules/unicodedata.c
+2
-2
No files found.
Modules/_tkinter.c
Dosyayı görüntüle @
ed8ba144
...
@@ -661,8 +661,8 @@ Tkapp_New(char *screenName, char *className,
...
@@ -661,8 +661,8 @@ Tkapp_New(char *screenName, char *className,
}
}
strcpy
(
argv0
,
className
);
strcpy
(
argv0
,
className
);
if
(
isupper
(
Py_CHARMASK
(
argv0
[
0
])))
if
(
Py_ISUPPER
(
Py_CHARMASK
(
argv0
[
0
])))
argv0
[
0
]
=
tolower
(
Py_CHARMASK
(
argv0
[
0
]));
argv0
[
0
]
=
Py_TOLOWER
(
Py_CHARMASK
(
argv0
[
0
]));
Tcl_SetVar
(
v
->
interp
,
"argv0"
,
argv0
,
TCL_GLOBAL_ONLY
);
Tcl_SetVar
(
v
->
interp
,
"argv0"
,
argv0
,
TCL_GLOBAL_ONLY
);
ckfree
(
argv0
);
ckfree
(
argv0
);
...
...
Modules/binascii.c
Dosyayı görüntüle @
ed8ba144
...
@@ -1102,8 +1102,8 @@ to_int(int c)
...
@@ -1102,8 +1102,8 @@ to_int(int c)
if
(
isdigit
(
c
))
if
(
isdigit
(
c
))
return
c
-
'0'
;
return
c
-
'0'
;
else
{
else
{
if
(
isupper
(
c
))
if
(
Py_ISUPPER
(
c
))
c
=
tolower
(
c
);
c
=
Py_TOLOWER
(
c
);
if
(
c
>=
'a'
&&
c
<=
'f'
)
if
(
c
>=
'a'
&&
c
<=
'f'
)
return
c
-
'a'
+
10
;
return
c
-
'a'
+
10
;
}
}
...
...
Modules/unicodedata.c
Dosyayı görüntüle @
ed8ba144
...
@@ -830,7 +830,7 @@ _gethash(const char *s, int len, int scale)
...
@@ -830,7 +830,7 @@ _gethash(const char *s, int len, int scale)
unsigned
long
h
=
0
;
unsigned
long
h
=
0
;
unsigned
long
ix
;
unsigned
long
ix
;
for
(
i
=
0
;
i
<
len
;
i
++
)
{
for
(
i
=
0
;
i
<
len
;
i
++
)
{
h
=
(
h
*
scale
)
+
(
unsigned
char
)
toupper
(
Py_CHARMASK
(
s
[
i
]));
h
=
(
h
*
scale
)
+
(
unsigned
char
)
Py_TOUPPER
(
Py_CHARMASK
(
s
[
i
]));
ix
=
h
&
0xff000000
;
ix
=
h
&
0xff000000
;
if
(
ix
)
if
(
ix
)
h
=
(
h
^
((
ix
>>
24
)
&
0xff
))
&
0x00ffffff
;
h
=
(
h
^
((
ix
>>
24
)
&
0xff
))
&
0x00ffffff
;
...
@@ -980,7 +980,7 @@ _cmpname(PyObject *self, int code, const char* name, int namelen)
...
@@ -980,7 +980,7 @@ _cmpname(PyObject *self, int code, const char* name, int namelen)
if
(
!
_getucname
(
self
,
code
,
buffer
,
sizeof
(
buffer
)))
if
(
!
_getucname
(
self
,
code
,
buffer
,
sizeof
(
buffer
)))
return
0
;
return
0
;
for
(
i
=
0
;
i
<
namelen
;
i
++
)
{
for
(
i
=
0
;
i
<
namelen
;
i
++
)
{
if
(
toupper
(
Py_CHARMASK
(
name
[
i
]))
!=
buffer
[
i
])
if
(
Py_TOUPPER
(
Py_CHARMASK
(
name
[
i
]))
!=
buffer
[
i
])
return
0
;
return
0
;
}
}
return
buffer
[
namelen
]
==
'\0'
;
return
buffer
[
namelen
]
==
'\0'
;
...
...
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