bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] printf %ls/%lc/%Q fixes


From: Grisha Levit
Subject: Re: [PATCH] printf %ls/%lc/%Q fixes
Date: Sat, 21 Oct 2023 20:40:41 -0400

On Thu, Oct 19, 2023 at 8:23 PM Grisha Levit <grishalevit@gmail.com> wrote:
> @@ -490,7 +491,10 @@ printf_builtin (WORD_LIST *list)
>                     ws[0] = wc;
>                     ws[1] = L'\0';
>
> -                   r = printwidestr (start, ws, 1, fieldwidth, precision);
> +                   if (wc == L'\0')
> +                     r = printstr (start, ws, 1, fieldwidth, precision);

Sorry, printstr isn't expecting a wchar_t* arg so that could be something like:

r = printstr (start, "", 1, fieldwidth, precision);



reply via email to

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