Bug 8305 - readline работает неправильно с не-ascii вводом
: readline работает неправильно с не-ascii вводом
: Sisyphus
(All bugs in Sisyphus/libreadline)
: unstable
: all Linux
: P2 normal
Assigned To:
  Show dependency tree
Reported: 2005-10-20 16:59 by
Modified: 2005-12-30 03:52 (History)

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


You need to log in before you can comment on or make changes to this bug.

Description From 2005-10-20 16:59:11

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 From 2005-10-20 17:02:20 -------
Created an attachment (id=1204) [details]
Patch by Aleksey Cheusov

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

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