Bug 8305

Summary: readline работает неправильно с не-ascii вводом
Product: Sisyphus Reporter: Kirill A. Shutemov <kas>
Component: libreadlineAssignee: Dmitry V. Levin <ldv>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
Patch by Aleksey Cheusov none

Description Kirill A. Shutemov 2005-10-20 16:59:11 MSD
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=332635

M-b, M-f, M-u, M-l and other keys strokes
do not work properly with non-ASCII input.

This is because isalpha, isalnum,... tolower and toupper function
handles correctly only ASCII characters.
Another bug is in that '(char) 255' is passed to all these functions.
Because 'char == signed char', '(char) 255' is treated as -1 which is equal
to EOF constant.
As a result, when working in CP1251 coding system, the lowercase russian
charter YA is processed incorrectly.
The coding systems KOI8-R and ISO-8859-5 are also affected.

The patch below fixes these bugs.
Please forward it to upstream.
Comment 1 Kirill A. Shutemov 2005-10-20 17:02:20 MSD
Created attachment 1204 [details]
Patch by Aleksey Cheusov

Патч сделал Алексей Чеусов

Проверен для ALT -- работает
Comment 2 Alexey Gladkov 2005-10-20 19:14:18 MSD
I take this problem.
Comment 3 Dmitry V. Levin 2005-12-30 03:51:56 MSK
Back to maintainer.
Comment 4 Dmitry V. Levin 2005-12-30 03:52:30 MSK
Fixed in readline-5.1.1-alt1.