Re: Re : tr() problem ?

2011-03-02 Fir de Conversatie Ben Schmidt
On 11/02/11 11:02 PM, Dimitar DIMITROV wrote: I just tested: :com! Test ec '♛' then :Test prints ♀fdQ :ec '♛' prints '♛' So the problem is :com related not tr() as previously thought Attached is the fix. K_SPECIAL is not a multibyte character code, so vim_strchr is not an appropriate way

Re: Re : tr() problem ?

2011-03-02 Fir de Conversatie Bram Moolenaar
Ben Schmidt wrote: On 11/02/11 11:02 PM, Dimitar DIMITROV wrote: I just tested: :com! Test ec '♛' then :Test prints ♀fdQ :ec '♛' prints '♛' So the problem is :com related not tr() as previously thought Attached is the fix. K_SPECIAL is not a multibyte character code, so

Re : tr() problem ?

2011-02-10 Fir de Conversatie Dimitar DIMITROV
Thanks James, I'll use \u0440 as you suggested D De : James Vega james...@jamessan.com À : vim_dev@googlegroups.com Envoyé le : Mer 9 février 2011, 19h 10min 55s Objet : Re: tr() problem ? On Wed, Feb 9, 2011 at 12:04 PM, Dimitar DIMITROV mitk...@yahoo.fr

Re: tr() problem ?

2011-02-10 Fir de Conversatie James Vega
On Wed, Feb 9, 2011 at 2:10 PM, James Vega james...@jamessan.com wrote: On Wed, Feb 9, 2011 at 12:04 PM, Dimitar DIMITROV mitk...@yahoo.fr wrote: But this doesn't: command! Translate call setline(line('.'), tr(getline('.'),   

Re: tr() problem ?

2011-02-09 Fir de Conversatie James Vega
On Wed, Feb 9, 2011 at 12:04 PM, Dimitar DIMITROV mitk...@yahoo.fr wrote: But this doesn't: command! Translate call setline(line('.'), tr(getline('.'),    \'ABVGDEWZIJKLMNOPRSTUYFHXC$^}{!|Qabvgdewzijklmnoprstuyfhxc467][1\q',