Re: [PATCH] READLINE_POINT with multibyte locales

2018-04-11 Thread Chet Ramey
On 4/10/18 7:48 AM, Koichi Murase wrote: > (I'm sorry. I directly replied to Chet's e-mail address by mistake. > Let me send the reply again to the mailing list.) > > Hi Chet, > > Thank you for your explanation. > > 2018-04-10 0:26 GMT+09:00 Chet Ramey : >> Because the underlying readline variab

Re: [PATCH] READLINE_POINT with multibyte locales

2018-04-10 Thread Koichi Murase
(I'm sorry. I directly replied to Chet's e-mail address by mistake. Let me send the reply again to the mailing list.) Hi Chet, Thank you for your explanation. 2018-04-10 0:26 GMT+09:00 Chet Ramey : > Because the underlying readline variable that it controls, rl_point, is > kept in bytes -- an in

Re: [PATCH] READLINE_POINT with multibyte locales

2018-04-09 Thread Chet Ramey
On 4/9/18 10:51 AM, Koichi Murase wrote: > Bash Version: 4.4 > Patch Level: 19 > Release Status: release > > Description: > > Currently `READLINE_POINT' counts the number of bytes but not > characters. This makes difficult to properly implement shell functions > for `bind -x' that uses `READLI

[PATCH] READLINE_POINT with multibyte locales

2018-04-09 Thread Koichi Murase
Hello, This is not a bug report but suggestion of a change. Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCO