bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readline 5.0 bug with utf-8 characters + editing ?


From: Tim Waugh
Subject: Re: readline 5.0 bug with utf-8 characters + editing ?
Date: Sat, 29 Jan 2005 13:36:16 +0000
User-agent: Mutt/1.4.1i

On Sat, Jan 29, 2005 at 02:15:18PM +0100, Danny Milosavljevic wrote:

> int
> main(int argc, char *argv[])
> {
>         char const*     line;
>         /* \033[1;31m */
>         while ((line =
> readline("\1\1\033[1;31m\1\2\343\200\216 bla
> \343\200\217 bla \343\200\207 ") )) {
>                 if (line && *line)
>                         add_history (line);
>         }

Looks like you forgot to call setlocale(LC_ALL, "") first?

Tim.
*/

Attachment: pgpoNt3F3gJza.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]