Bug 8305 - readline работает неправильно с не-ascii вводом
Summary: readline работает неправильно с не-ascii вводом
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libreadline (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 16:59 MSD by Kirill A. Shutemov
Modified: 2005-12-30 03:52 MSK (History)
1 user (show)

See Also:


Attachments
Patch by Aleksey Cheusov (2.35 KB, patch)
2005-10-20 17:02 MSD, Kirill A. Shutemov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.