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
aac9b716
Kaydet (Commit)
aac9b716
authored
Agu 27, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #19884: Merge Readline updates from 3.5
üst
ef91bb26
c427b8d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
test_readline.py
Lib/test/test_readline.py
+1
-1
NEWS
Misc/NEWS
+2
-0
readline.c
Modules/readline.c
+15
-12
No files found.
Lib/test/test_readline.py
Dosyayı görüntüle @
aac9b716
...
...
@@ -111,7 +111,7 @@ class TestHistoryManipulation (unittest.TestCase):
class
TestReadline
(
unittest
.
TestCase
):
@unittest.skipIf
(
readline
.
_READLINE_VERSION
<
0x060
0
and
not
is_editline
,
@unittest.skipIf
(
readline
.
_READLINE_VERSION
<
0x060
1
and
not
is_editline
,
"not supported in this library version"
)
def
test_init
(
self
):
# Issue #19884: Ensure that the ANSI sequence "\033[1034h" is not
...
...
Misc/NEWS
Dosyayı görüntüle @
aac9b716
...
...
@@ -46,6 +46,8 @@ Core and Builtins
Library
-------
- Issue #19884: Avoid spurious output on OS X with Gnu Readline.
- Issue #10513: Fix a regression in Connection.commit(). Statements should
not be reset after a commit.
...
...
Modules/readline.c
Dosyayı görüntüle @
aac9b716
...
...
@@ -1146,19 +1146,22 @@ setup_readline(readlinestate *mod_state)
mod_state
->
begidx
=
PyLong_FromLong
(
0L
);
mod_state
->
endidx
=
PyLong_FromLong
(
0L
);
#ifndef __APPLE__
if
(
!
isatty
(
STDOUT_FILENO
))
{
/* Issue #19884: stdout is not a terminal. Disable meta modifier
keys to not write the ANSI sequence "\033[1034h" into stdout. On
terminals supporting 8 bit characters like TERM=xterm-256color
(which is now the default Fedora since Fedora 18), the meta key is
used to enable support of 8 bit characters (ANSI sequence
"\033[1034h").
With libedit, this call makes readline() crash. */
rl_variable_bind
(
"enable-meta-key"
,
"off"
);
}
#ifdef __APPLE__
if
(
!
using_libedit_emulation
)
#endif
{
if
(
!
isatty
(
STDOUT_FILENO
))
{
/* Issue #19884: stdout is not a terminal. Disable meta modifier
keys to not write the ANSI sequence "\033[1034h" into stdout. On
terminals supporting 8 bit characters like TERM=xterm-256color
(which is now the default Fedora since Fedora 18), the meta key is
used to enable support of 8 bit characters (ANSI sequence
"\033[1034h").
With libedit, this call makes readline() crash. */
rl_variable_bind
(
"enable-meta-key"
,
"off"
);
}
}
/* Initialize (allows .inputrc to override)
*
...
...
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