[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] A bug in complete.c if HANDLE_MULTIBYTE is undefined.
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] A bug in complete.c if HANDLE_MULTIBYTE is undefined. |
Date: |
Tue, 4 Jul 2017 19:48:16 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
On 7/4/17 3:26 PM, Juan Manuel Guerrero wrote:
> I have tried to build readline-7.0 for MSDOS/FreeDOS using DJGPP. The only
> important issue here is that the used system does not provide multi-byte
> support at all thus NO_MULTIBYTE_SUPPORT is defined to 1 and HANDLE_MULTIBYTE
> is undefined. This triggers at least one bug.
>
> In function fnprint of file complete.c the variable print_len is initialized
> with the return value of strlen, but that happens only iff HANDLE_MULTIBYTE
> is defined. Else this variable is never initialized but later used in line
> 828:
Thanks for the report and fix. Please let me know about other issues you
discover when running without multibyte character support -- I don't see a
lot of reports from those systems any more.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/