1. 17 May, 2018 1 kayıt (commit)
  2. 15 Ock, 2018 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-29240: Fix locale encodings in UTF-8 Mode (#5170) · 7ed7aead
      Victor Stinner yazdı
      Modify locale.localeconv(), time.tzname, os.strerror() and other
      functions to ignore the UTF-8 Mode: always use the current locale
      encoding.
      
      Changes:
      
      * Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx(). On decoding or
        encoding error, they return the position of the error and an error
        message which are used to raise Unicode errors in
        PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale().
      * Replace _Py_DecodeCurrentLocale() with _Py_DecodeLocaleEx().
      * PyUnicode_DecodeLocale() now uses _Py_DecodeLocaleEx() for all
        cases, especially for the strict error handler.
      * Add _Py_DecodeUTF8Ex(): return more information on decoding error
        and supports the strict error handler.
      * Rename _Py_EncodeUTF8_surrogateescape() to _Py_EncodeUTF8Ex().
      * Replace _Py_EncodeCurrentLocale() with _Py_EncodeLocaleEx().
      * Ignore the UTF-8 mode to encode/decode localeconv(), strerror()
        and time zone name.
      * Remove PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize()
        and PyUnicode_EncodeLocale() now ignore the UTF-8 mode: always use
        the "current" locale.
      * Remove _PyUnicode_DecodeCurrentLocale(),
        _PyUnicode_DecodeCurrentLocaleAndSize() and
        _PyUnicode_EncodeCurrentLocale().
      7ed7aead
  3. 11 Ock, 2018 1 kayıt (commit)
  4. 10 Ock, 2018 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-29240: readline now ignores the UTF-8 Mode (#5145) · 2cba6b85
      Victor Stinner yazdı
      Add new fuctions ignoring the UTF-8 mode:
      
      * _Py_DecodeCurrentLocale()
      * _Py_EncodeCurrentLocale()
      * _PyUnicode_DecodeCurrentLocaleAndSize()
      * _PyUnicode_EncodeCurrentLocale()
      
      Modify the readline module to use these functions.
      
      Re-enable test_readline.test_nonascii().
      2cba6b85
  5. 30 Kas, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      Fix CID-1414686: PyInit_readline() handles errors (#4647) · 0efc0249
      Victor Stinner yazdı
      Handle PyModule_AddIntConstant() and PyModule_AddStringConstant()
      failures. Add also constants before calling setup_readline(), since
      setup_readline() registers callbacks which uses a reference to the
      module, whereas the module is destroyed if adding constants fails.
      
      Fix Coverity warning:
      
      CID 1414686: Unchecked return value (CHECKED_RETURN)
      2. check_return: Calling PyModule_AddStringConstant without checking
      return value (as is done elsewhere 45 out of 55 times).
      0efc0249
  6. 12 Kas, 2017 1 kayıt (commit)
  7. 07 Eyl, 2017 1 kayıt (commit)
  8. 18 Tem, 2017 1 kayıt (commit)
  9. 07 Tem, 2017 2 kayıt (commit)
    • Victor Stinner's avatar
      bpo-29854: test_readline logs versions (#2619) · 1881befb
      Victor Stinner yazdı
      * test_readline logs the versions of libreadline when run in verbose
        mode
      * Add also readline._READLINE_LIBRARY_VERSION
      1881befb
    • Nir Soffer's avatar
      bpo-29854: Fix segfault in call_readline() (GH-728) · fae8f4a9
      Nir Soffer yazdı
      If history-length is set in .inputrc, and the history file is double the
      history size (or more), history_get(N) returns NULL, and python
      segfaults. Fix that by checking for NULL return value.
      
      It seems that the root cause is incorrect handling of bigger history in
      readline, but Python should not segfault even if readline returns
      unexpected value.
      
      This issue affects only GNU readline. When using libedit emulation
      system history size option does not work.
      fae8f4a9
  10. 16 Nis, 2017 1 kayıt (commit)
  11. 01 Ara, 2016 1 kayıt (commit)
    • Victor Stinner's avatar
      Replace PyObject_CallFunction() with fastcall · 4778eab1
      Victor Stinner yazdı
      Replace
          PyObject_CallFunction(func, "O", arg)
      and
          PyObject_CallFunction(func, "O", arg, NULL)
      with
          _PyObject_CallArg1(func, arg)
      
      Replace
          PyObject_CallFunction(func, NULL)
      with
          _PyObject_CallNoArg(func)
      
      _PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate
      memory on the C stack.
      4778eab1
  12. 06 Eyl, 2016 1 kayıt (commit)
  13. 27 Agu, 2016 1 kayıt (commit)
  14. 14 Haz, 2016 1 kayıt (commit)
  15. 02 Haz, 2016 1 kayıt (commit)
  16. 15 May, 2016 1 kayıt (commit)
  17. 05 Nis, 2016 1 kayıt (commit)
    • Martin Panter's avatar
      Issue #6953: Rearrange and expand Readline module documentation · 0f767394
      Martin Panter yazdı
      * Group functions into six new subsections
      * Document the underlying Readline function or variable accessed
      * get_history_length() returns the history file limit
      * clear_history() is conditionally compiled in
      * Clarify zero and one bases for history item indexes
      * parse_and_bind() uses its argument directly as an init line
      * Change "command line" to "line buffer" for consistency
      * read_init_file() also executes the file
      * read_history_file() replaces the previous history
      * write_history_file() overwrites any existing file
      * Differentiate history file lines from history list items, which could be
        multi-line
      * Add more information about completion, also addressing Issue #10796
      * libedit (Editline) may be used on any platform; detection is OS X specific
      0f767394
  18. 03 Nis, 2016 2 kayıt (commit)
  19. 22 Mar, 2016 2 kayıt (commit)
  20. 05 Ock, 2016 1 kayıt (commit)
  21. 02 Kas, 2015 1 kayıt (commit)
  22. 27 Eyl, 2015 1 kayıt (commit)
  23. 06 Eyl, 2015 1 kayıt (commit)
  24. 26 Nis, 2015 1 kayıt (commit)
  25. 26 Kas, 2014 3 kayıt (commit)
  26. 04 Kas, 2014 1 kayıt (commit)
  27. 24 Tem, 2014 2 kayıt (commit)
  28. 09 Şub, 2014 1 kayıt (commit)
  29. 06 Şub, 2014 4 kayıt (commit)
  30. 24 Ock, 2014 2 kayıt (commit)