This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Fix readline for utf-8 locales
Type: Stage:
Components: Extension Modules Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: loewis, nijel
Priority: normal Keywords: patch

Created on 2004-03-11 17:34 by nijel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Python-2.3.3-locale.patch nijel, 2004-03-11 17:34 adding few setlocale calls to readline
Messages (2)
msg45493 - (view) Author: Michal Čihař (nijel) * Date: 2004-03-11 17:34
When using utf-8 locales, readline doesn't work
correctly if not set LC_CTYPE to corresponding value.
This patch adds missing calls to setlocale (I'm not
sure whether it is really needed in setup_readline, but
it definitely is in call_readline.
msg45494 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-18 13:37
Logged In: YES 
user_id=21627

Thanks for the patch. I have applied it as

NEWS 1.831.4.143
readline.c 2.75 2.64.6.2

Calling setlocale in setup_readline is unnecessary, as
setup_readline will call that itself, so I left that part
out of the patch.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40025
2004-03-11 17:34:16nijelcreate