Re: grub_cmdline_get() i18n problem

2008-02-03 Thread Oleg Strikov
> > PROMPT is always in ASCII. This was my assumption. Is it bad? > > Okuji > Possibly, it is not so bad, but unexpectedly. It seems (e.g. to me) that grub_cmdline_get() simply makes grub_printf() call (without any `byte length` restrictions). Furthermore, if user wanna make `i18n prompt request`

Re: grub_cmdline_get() i18n problem

2008-02-02 Thread Yoshinori K. Okuji
On Friday 01 February 2008 22:19, Oleg Strikov wrote: > Good day! > > Let's look at grub_cmdline_get() func code: > > /* normal/cmdline.c - line 300 */ > plen = grub_utf8_strlen (prompt); > lpos = llen = 0; > buf[0] = '\0'; > > if ((grub_getxy () >> 8) != 0) > grub_putchar ('\n'); > >

Re: grub_cmdline_get() i18n problem

2008-02-01 Thread Robert Millan
On Fri, Feb 01, 2008 at 09:19:57PM +, Oleg Strikov wrote: > There are two ways: > * encode smth like grub_utf8_strlen () > * modify grub_strlen () func and add this feature > > I do my best to solve this problem, but what way do you recommend? The convention is to match the posix equivalents,