[Patches] [ python-Patches-914291 ] Fix readline for utf-8 locales

SourceForge.net noreply at sourceforge.net
Wed Aug 18 15:37:19 CEST 2004


Patches item #914291, was opened at 2004-03-11 18:34
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=914291&group_id=5470

Category: Modules
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Michal Čihař (nijel)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix readline for utf-8 locales

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2004-08-18 15:37

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=914291&group_id=5470


More information about the Patches mailing list